With the depreciation of the Canvas Graphics you can no longer use graphics in the lines of code. When I run my app now I get 3568 error messages. I created my own buttons using a Canvas. The image changes depending on which event you are using, such as MouseUp, MouseOver, Mouse Exit, etc…
Much of my code looks like this.
[code]Dim p As Picture = New Picture(Me.Graphics.Width, Me.Graphics.Height, 32)
p.transparent = 1
p.Graphics.DrawPicture(C, 0, 0, Me.Graphics.Width,Me.Graphics.Height, 0, 0, C.Width, C.Height)
me.backdrop = p[/code]
Is the a way I can fix this that does not entail starting over?
frmBlue.ResetButtons, line 253
Type “Picture” has no member named “DrawPicture”
p.DrawPicture(PML, 0, 0, bPMailList.Width, bPMailList.Height, 0, 0, PML.Width, PML.Height)
[quote=436404:@Kevin Gale]
The documentation stated for years NOT to do things that way. Are you redrawing all the picture each time?
The documentation is hundreds of pages long. I have not read the entire documentation. If I read that, I certainly would not have done it that way.