Anyone know how I would go about rendering it properly to a panel. I have set it up so that the device is linked to the panel, but I want to not only render the device, but also render the rest of the controls as normal.
If I use the OnPaint method, Windows takes over and repaints the panel itself. If I use the DoEvents, the application becomes very sluggish (and tbh, I've not been able to get it to render properly with a while loop anyway, Windows still takes over the painting).
I got round it by creating my own control that inherits from UserControl (I didn't really need the panel behaviour). This has the added advantage of abstracting all my code into one componant (including device initialisation and rendering).