form color

K

karim

Hello All,
is there a code for changing the form's backcolor? something that
would open and you select a color from it that would change the form's back
color?

thank for you help...
 
O

Onur Güzel

Hello All,
       is there a code for changing the form's backcolor? something that
would open and you select a color from it that would change the form's back
color?

thank for you help...

Hi,
Add a ColorDialog control on your form, then assign the color to your
form that colordialog returns which you want:

If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
Me.BackColor = ColorDialog1.Color
End If

HTH,

Onur Güzel
 

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

Top