G
Guest
hey all,
how do i change the BackgroundImage property of my form in code?
thanks,
rodchar
how do i change the BackgroundImage property of my form in code?
thanks,
rodchar
rodchar said:how do i change the BackgroundImage property of my form in code?
Steven Nagy said:That would be a good idea.
If you want to be drawing multiple images all the time, a background
image or picturebox might not be the best option. There is an entire
namespace (System.Drawing) dedicated to drawing to surfaces. Generally,
most controls / forms have an OnPaint event where you can customise
what gets painted (drawn) to that surface
Also when changing images the way you are, its good to invalidate the
control/form.
Refresh is also an option, although may cause flicker.
Further topics found in MSDN if you search for GDI or GDI+.
Should be some walkthroughs for the OnPaint stuff.