c# - DrawToBitmap on windows xp -


i have user control shows plate number of vehicle(it contains background image , textboxes), use drawtobitmap() method bitmap of control , show bitmap on form, works fine on windows 7 in windows xp service pack 3 background image drawn , texts in textboxes not drawn, should do?

var clt = new controllisencetouch();bitmap b = new bitmap(clt.width, clt.height); clt.license = license.fromcar(somecar); clt.invalidate(true); clt.drawtobitmap(b, rectangle.fromltrb(0, 0, clt.width, clt.height)); picturebox1.image = b; 

this guy had same sort of problem, , while answer not perfect, did him. biggest problem here if window covering control, window shown well. @ answer, third edit shows taking screen shot, , cropping control out of it.

how can screenshot of control? drawtobitmap not working

according http://msdn.microsoft.com/en-us/library/system.windows.forms.control.drawtobitmap.aspx
windows xp sp3 supported


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -