Grayed out Bitmap control image on virtual machine logout mode

  • Thread starter Thread starter Sandeep SS
  • Start date Start date
S

Sandeep SS

Guest
Hello All,

Install Winforms application(VS17) on virtual machine with OS-10 1909 and create current forms (Auto) Bitmap image by
control.DrawToBitmap method after lock virtual machine(Disconnected). Some controls on forms are black in Bitmap image.

this problem is not seen on local machine as well as virtual machine with OS-10 1803 and not every time on virtual machine OS-10 1909

Method return Bitmap, control parameter


//'control' parameter is current window form

private Bitmap GetControlImage(Control control)
{
Bitmap bitmap = new Bitmap(control.Width, control.Height);
control.DrawToBitmap(bitmap, new Rectangle(0, 0, control.Width, control.Height));

//Save bitmap
return bitmap;
}



Main Pane and Pane - 1 portion black in bitmap image.

How to solve this problem please help.

Continue reading...
 
Back
Top