Grayed out Bitmap control image on virtual machine logout mode RRS feed

  • Question

  • 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.

    • Moved by CoolDadTx Wednesday, November 18, 2020 2:52 PM Winforms related
    Wednesday, November 18, 2020 10:04 AM

All replies

  • This question is related to Windows Forms and not C#. Please post your question in the new Microsoft Q&A forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Wednesday, November 18, 2020 2:52 PM