Results 1 to 5 of 5

Thread: Graphics Vanish

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Posts
    31

    Question 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.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You have to redraw them OnPaint I think. It kind of works like Printing to the form directly in VB6.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Posts
    31
    I tried that and still can't figure out how to get it to work...

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Posts
    31

    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.

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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
  •  



Click Here to Expand Forum to Full Width