S
sam
Hi
I write a small vb program with GDI+. Everything is Ok until I try to
change form backColor. I use the code below: (event form load)
myImage = New Bitmap(Me.ClientSize.Width, _
Me.ClientSize.Height)
Dim g As Graphics = Graphics.FromImage(myImage)
g.Clear(Me.BackColor)
Me.BackColor = Color.Cornsilk
g.Dispose()
Nothing happens. However, if I move "Me.BackColor = Color.Cornsilk"
before "g.Clear(Me.BackColor)", the backcolor is changed.
Please advice, Thank you in advance
Sam
I write a small vb program with GDI+. Everything is Ok until I try to
change form backColor. I use the code below: (event form load)
myImage = New Bitmap(Me.ClientSize.Width, _
Me.ClientSize.Height)
Dim g As Graphics = Graphics.FromImage(myImage)
g.Clear(Me.BackColor)
Me.BackColor = Color.Cornsilk
g.Dispose()
Nothing happens. However, if I move "Me.BackColor = Color.Cornsilk"
before "g.Clear(Me.BackColor)", the backcolor is changed.
Please advice, Thank you in advance
Sam