Windows Form BackColor

  • Thread starter Thread starter Visual Developer
  • Start date Start date
V

Visual Developer

Guest
Hi,

I can't seem to set the BackColor property of a Windows Form.

Whenever I do:

Code:
Me.BackColor = RGB(100, 200, 250)

VB.NET says it can't convert the integer values passed to a System.Drawing.Color object.

Whats wrong?

Thanks,
Visual Developer
 
Oh no! My MDI Form doesn't seem to change its BackColor!

Even when I change the BackColor in the designer - it still shows the normal AppWorkspace! Whats wrong? Please help!

Thanks

VD
 
The window color is not the same as the application workspace color. Two different settings. You'll have to intercept the form's WM_PAINT and WM_SIZE messages and color the workspace manually.

Good Luck
-CL
 
Back
Top