k1sr
11th April 2009, 02:29 PM
Hey,
Really struggling to put together some code to draw a transparent button...
I'm kinda new to programming for windows CE, so I'm keeping to VB until I get my head a little more around it, and I just can't seem to create a simple transparent button... I figure it can't be too hard.
In short, I want an irregular shaped button (like any sort of image) ontop of a background image, that when pressed changes to a different 'pressed' image.
Should be easy, but I just can't seem to do it.
I've got no probelms drawing the transparent button image ontop of the background inside of:
Private Sub Background_Paint(ByVal sender As Object, ByVal e As PaintEventArgs) Handles Background.Paint
but I have absolutely no idea how to either redraw the background with the new 'pressed' image or any other method...
If anyone can help, that would be great... If you have a sample, even better...
Thanks...!
Really struggling to put together some code to draw a transparent button...
I'm kinda new to programming for windows CE, so I'm keeping to VB until I get my head a little more around it, and I just can't seem to create a simple transparent button... I figure it can't be too hard.
In short, I want an irregular shaped button (like any sort of image) ontop of a background image, that when pressed changes to a different 'pressed' image.
Should be easy, but I just can't seem to do it.
I've got no probelms drawing the transparent button image ontop of the background inside of:
Private Sub Background_Paint(ByVal sender As Object, ByVal e As PaintEventArgs) Handles Background.Paint
but I have absolutely no idea how to either redraw the background with the new 'pressed' image or any other method...
If anyone can help, that would be great... If you have a sample, even better...
Thanks...!