Greying out a group box...

  • Thread starter Thread starter Scott
  • Start date Start date
S

Scott

I have a radio button at the top of my page and when radiobutton2 is pressed
I need to grey out groupbox2 which is not applicable to that particular
instance.

Thanks for any advice

Scott
 
Scott said:
I have a radio button at the top of my page and when radiobutton2
is pressed I need to grey out groupbox2 which is not applicable to
that particular instance.

Private Sub RadioButton2_CheckedChanged( _
ByVal sender as Object _
, ByVal e as EventArgs _
) Handles RadioButton2.Checked

' One of these two ...
Me.GroupBox2.Enabled = RadioButton2.Checked
' Me.GroupBox2.Enabled = Not RadioButton2.Checked

End Sub

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top