If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Converting VB6 to VB2010 using picturebox that is not redrawing

I have a vb6 project that uses a third party DLL that draws to a picturebox. I provide the handle of the Picturebox and it does the drawing, In VB6 I set AutoRedraw to True and the in the paint event I call the DLL's Refresh routine. Using the same code in VB2010 the graphics flicker for just a second and then disappear when I resize the picturebox. Is there a way around this in VB2010?

Re: Converting VB6 to VB2010 using picturebox that is not redrawing

Well I can not tank the DLLso that is not an optinand converting it to .NET may be an option. WHat I do not understand is the fact that I see the geometry and everything works fine. It just seems to me that resizing the form I should be able to refresh the geometry that was already displayed. If it can display it, you would think you would be able to refresh it as well.

I will keep messing with it. There has to be a solution. Thanks for your help