Dim ctrl As Control
Private Sub correctenabledstate(ByVal x As Boolean)
For Each ctrl In Me.Controls
If TypeOf (ctrl) Is Button And ctrl.name <> "btnnewgame" Then
ctrl.Enabled = x
End If
Next
End Sub
this is the code i have written but it says that name is not a member of system.windows.forms.control please help ASAP
Private Sub correctenabledstate(ByVal x As Boolean)
For Each ctrl In Me.Controls
If TypeOf (ctrl) Is Button And ctrl.name <> "btnnewgame" Then
ctrl.Enabled = x
End If
Next
End Sub
this is the code i have written but it says that name is not a member of system.windows.forms.control please help ASAP