Basically Im converting my old VB6 chip8 emulator into Vs2010 version, so far everything works except the drawing routine.

In Vb6 it was easy, simply

pict1.line(x1,y1)-(x2,y2),vbwhite, BF

etc..

I could write to the picture box directly within a different sub called from main() and also call the form refresh etc.

In Vb2010 it seems entirely different, you create a graphics object.

Dim g as graphics

Then assign it to an object with the create graphics method

g=picturebox1.creategraphics

then use g.drawline etc.. <<< this normally goes in the paint event of the object.

The problem im having is that nothing displays until the paint event, which is not how my code works.

Basically the emulator procedure framework is:-

LoadRom
Initialise stuff
Emulate
-Fetch opcodes
-Interpret
-Set VxtoVy
-Set ReturnFromSub
-DrawRoutine

As I try to draw on the picture box from within the DrawRoutine sub nothing displays, is there something else needed to cause a draw event to happen?