I have many RadioButton on the Form and I want to make Enable for them, So this will need many like this code RadioButton.Enabled= False.
I tried this code to set the property for all Tools but doens't susccess with me.
I tried this code to set the property for all Tools but doens't susccess with me.
VB.NET:
[LEFT][FONT=Courier New][COLOR=blue][COLOR=blue][FONT=Courier New]For[/FONT][/COLOR][FONT=Courier New] [COLOR=blue]Each[/COLOR] RadB [COLOR=blue]As[/COLOR] Control [COLOR=blue]In[/COLOR] Controls[/FONT][/COLOR][/FONT]
[FONT=Courier New][COLOR=blue][FONT=Courier New][COLOR=blue]If[/COLOR] [COLOR=blue]TypeOf[/COLOR] RadB [COLOR=blue]Is[/COLOR] RadioButton [COLOR=blue]Then[/COLOR] RadB.Enabled = [COLOR=blue]False[/COLOR][/FONT][/COLOR][/FONT][/LEFT]
[FONT=Courier New][COLOR=blue][COLOR=blue][FONT=Courier New]Next[/FONT][/COLOR]
[/COLOR][/FONT]