Results 1 to 5 of 5

Thread: Picture Box Doesn't Redraw

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    11

    Unhappy

    What I've done is to send a picture box as an object into a module for manipulation. However, while the module is being run, whenever i set the visible property to be true, all i get is a box (without the picture) and when i set it to be false, the original picture box is still there.

    The final (correct) product happens only when the algorithm runs to the end.

    How can I make it such that the picture box is right when the module is runned?

    andrew

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Code:
    Picturebox.Refresh
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    11
    The picturebox that is supposed to be visible is ok now. However the picturebox that has its properties changed to Invisible is still visible. Help!!!

    andrew

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Hmm, thats odd, there are two causes i could think of,

    1. That you have clipcontrols set to false
    2. That you don't give a chance for the form to update it's event. Use doevents statement after you turn it invisible and it will repaint the form
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    Me.Refresh ?

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