Hi All,
We are invoking a method exposed by thrid party DLL (Non COM), the method
expects one of the parameter as handle to device context of vb.net form. As
form object is changed in .Net, we don't have HDC property for a form. So we
are trying to get handle from Graphics class using following statement
Form1.CreateGraphics.GetHdc()
When we draw anything on HDC by above method, it will erase the drawing
whenever Paint event of form is fired. We can't reinvoke the method is Paint
event.
Is there any other alternative for above problem?
Any help will be appreciated.
Regards,
Rahul