Visual Basic how to make Panel which in Disable into little Dark in color

5 pts.
Tags:
Visual Basic
Hi sir

I have application where their are 5 panels.I have to make like if we press one button on form which got 5 panels then its just focus on particular 1 panel n rest all panel became disable with little dark in color.

 



Software/Hardware used:
visual basic

Answer Wiki

Thanks. We'll let you know when a new response is added.

If I understand your question correctly, then something like this should do what you need:

<pre> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Panel2.Enabled = False
Panel2.BackColor = Color.DarkGray
Panel3.Enabled = False
Panel3.BackColor = Color.DarkGray

End Sub</pre>

-CarlosDL

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following