VirtualBox

Changes between Initial Version and Version 2 of Ticket #13759


Ignore:
Timestamp:
Jan 14, 2015 7:59:51 PM (9 years ago)
Author:
Frank Mehnert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13759

    • Property Status newclosed
    • Property Resolutioninvalid
  • Ticket #13759 – Description

    initial v2  
    22I develop on C#.
    33I'm trying to switch VirtualBox to SeamlessMode throughout IDisplay.SetSeamlessMode with runing VM, but it's not working. [https://forums.virtualbox.org/viewtopic.php?f=34&t=65462]
    4 
    5 VirtualBoxClient vboxclient = new VirtualBoxClient();[[BR]]
    6 IMachine machine = vboxclient.VirtualBox.FindMachine("VM");[[BR]]
    7 Session session = vboxclient.Session;[[BR]]
     4{{{
     5VirtualBoxClient vboxclient = new VirtualBoxClient();
     6IMachine machine = vboxclient.VirtualBox.FindMachine("VM");
     7Session session = vboxclient.Session;
    88try
    99{
    10    machine.LockMachine(session, LockType.LockType_Shared);[[BR]]
    11    session.Console.Display.SetSeamlessMode(1);[[BR]]
    12 }catch (Exception e){MessageBox.Show(e.Message);}         
     10   machine.LockMachine(session, LockType.LockType_Shared);
     11   session.Console.Display.SetSeamlessMode(1);
     12} catch (Exception e){MessageBox.Show(e.Message);}
    1313} finally {
    1414   if (session.State == SessionState.SessionState_Locked)
    15       session.UnlockMachine();[[BR]]
     15      session.UnlockMachine();
    1616}
     17}}}

© 2023 Oracle
ContactPrivacy policyTerms of Use