A
Amrut S Anegundi
Guest
Hi,
I am developing an application to monitor multiple remote PCs on the same window using windows form application with mdiContainer set to true where each child form contains a remote connection to a pc.
I want to resize the width(DesktopWidth) and Height(DesktopHeight) dynamically to client width and height (form) on form resize. Currently the control is centred on form resize without any change in height and width.
Is it possible to resize the DesktopHeight and DesktopWidth dynamically?
Sample code for your reference,
private AxMSTSCLib.AxMsRdpClient4 rdpc = null;
protected override void OnCreateControl()
{
rdpc = new AxMSTSCLib.AxMsRdpClient4();
rdpc.FullScreen = true;
rdpc.OnDisconnected += new AxMSTSCLib.IMsTscAxEvents_OnDisconnectedEventHandler(rdpc_OnDisconnected);
this.Controls.Add(rdpc);
rdpc.Dock = DockStyle.Fill;
base.OnCreateControl();
}
Regards,
Amrut
Amrut.s.a
Continue reading...
I am developing an application to monitor multiple remote PCs on the same window using windows form application with mdiContainer set to true where each child form contains a remote connection to a pc.
I want to resize the width(DesktopWidth) and Height(DesktopHeight) dynamically to client width and height (form) on form resize. Currently the control is centred on form resize without any change in height and width.
Is it possible to resize the DesktopHeight and DesktopWidth dynamically?
Sample code for your reference,
private AxMSTSCLib.AxMsRdpClient4 rdpc = null;
protected override void OnCreateControl()
{
rdpc = new AxMSTSCLib.AxMsRdpClient4();
rdpc.FullScreen = true;
rdpc.OnDisconnected += new AxMSTSCLib.IMsTscAxEvents_OnDisconnectedEventHandler(rdpc_OnDisconnected);
this.Controls.Add(rdpc);
rdpc.Dock = DockStyle.Fill;
base.OnCreateControl();
}
Regards,
Amrut
Amrut.s.a
Continue reading...