My c# program is using a c++ dll to load an image from an avi clip and display it to a picture box via the picturebox.handle. To draw the picture I call the c++ function passing to it the picturebox.handle.
My problem comes when I need to resize the form (or when another window covers this). I have set the picturebox to resize with the form. I have events for Form_Resize and Form_Paint, which call the c++ function to draw the image. When I resize the form this is what I see in the stated order:
1. The picture box resizes properly
2. Then I seee the image drawn to the new size
3. Then the image dissappears.
Any suggestions, thanks!
My problem comes when I need to resize the form (or when another window covers this). I have set the picturebox to resize with the form. I have events for Form_Resize and Form_Paint, which call the c++ function to draw the image. When I resize the form this is what I see in the stated order:
1. The picture box resizes properly
2. Then I seee the image drawn to the new size
3. Then the image dissappears.
Any suggestions, thanks!