Hi,
I migrated a program from VB6 to VB.Net 2005 and have a couple of issues still to resolve.
The first is getting a Picturebox to redraw when the form comes back up. My program have two open forms. The primary window has all incoming data, such as GPS information. The secondary window has the Picturebox and shows the graphic display of sightings in relation to the sighting platform.
All graphics to the Picturebox are handled by a few subroutines in a module. If I just go back to the form, the Picturebox is blank. I have to click a scale button or wait for another GPS input for the image to redraw. I'd like it to happen as soon as the form is selected.
I tried placing the call to the graphics subroutine in the Picturebox_Paint event, but it still doesn't work. It looks like for a split second that the image is redrawn, but then goes blank again. It's as if the call to the graphics subroutine is happening before the Picturebox is fully visible again.
Anyone have any ideas on what I can try? I've exhausted my ideas.
Thanks,
Robert
I migrated a program from VB6 to VB.Net 2005 and have a couple of issues still to resolve.
The first is getting a Picturebox to redraw when the form comes back up. My program have two open forms. The primary window has all incoming data, such as GPS information. The secondary window has the Picturebox and shows the graphic display of sightings in relation to the sighting platform.
All graphics to the Picturebox are handled by a few subroutines in a module. If I just go back to the form, the Picturebox is blank. I have to click a scale button or wait for another GPS input for the image to redraw. I'd like it to happen as soon as the form is selected.
I tried placing the call to the graphics subroutine in the Picturebox_Paint event, but it still doesn't work. It looks like for a split second that the image is redrawn, but then goes blank again. It's as if the call to the graphics subroutine is happening before the Picturebox is fully visible again.
Anyone have any ideas on what I can try? I've exhausted my ideas.
Thanks,
Robert