|
-
Oct 23rd, 2002, 10:54 AM
#1
Thread Starter
Junior Member
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.
-
Oct 23rd, 2002, 11:11 AM
#2
You have to redraw them OnPaint I think. It kind of works like Printing to the form directly in VB6.
-
Oct 23rd, 2002, 11:25 AM
#3
Thread Starter
Junior Member
I tried that and still can't figure out how to get it to work...
-
Oct 23rd, 2002, 11:27 AM
#4
Thread Starter
Junior Member
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.
-
Oct 23rd, 2002, 11:44 AM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|