-
Graphics Vanish
I'm trying to do something very simple but I think I'm missing a step...
I have a form with a tabsheet control. One of the tabs in the tabsheet control contains a bunch of rectangle objects that have bitmap images assigned to them. I can paint bitmaps on top of the bitmap image in the rectangle, but when I switch tabs and come back my graphical changes are lost. The same goes when I use a drop down combobox and when the list goes away the graphics that were painted are wiped out. HELP!!!!!
Thanks in advance to anyone who knows the simple answer to this.
-
You have to redraw them OnPaint I think. It kind of works like Printing to the form directly in VB6.
-
I tried that and still can't figure out how to get it to work...
-
Saw something related...
Someone mentioned that you have to paint the graphics back to the form and that's precisely what I can't figure out how to do.
-
I haven't actually done this but you'd think that you'd have to draw them on the OnPaint event of the form the same way you draw them on the first time.