Click here to Skip to main content
15,921,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Private Sub Form2_form()
        On_radiobttn.Checked = False
        notdefine_label.Text = ""
        Label5.Text = ""
        Label6.Text = ""
    End Sub


hei guys.. i'm new in visual basic.. i would like to ask bout..
after i compile the code as shown as above..
according to my understanding, the result should be radio button was not check,
and the label for (notdefine_label1, label5, and label 6) should be NULL,

but the problem is.. when i run my program...
it show me that the radio button was checked, and for 3 of the labels was not blank.. any pro can give me some advice?
Posted
Updated 8-Jan-13 17:48pm
v2

1 solution

Is this method even called ? If you're calling it, then the labels should be empty ( this is different to null ).
 
Share this answer
 
Comments
arnoldxx 8-Jan-13 23:53pm    
actually. this code is given by my lecturer.. so i not even know what is the method..

for more information..
the notdefine_label1 i wrote is as not define..

but after i set my code as 'notdefine_label.Text = "" '

it will be a blank text?
Christian Graus 8-Jan-13 23:54pm    
You need to call this method for it to work. It's sitting there, but never being called.
arnoldxx 8-Jan-13 23:56pm    
ic... now i get what u mean..
can u teach me how??
Christian Graus 8-Jan-13 23:59pm    
Your class is not worth anything if you don't have the course materials on how to call a method. http://www.homeandlearn.co.uk/net/nets9p5.html
arnoldxx 9-Jan-13 0:01am    
ic.. thx bro
and thanks for the info as well.. ^^

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900