|
-
May 19th, 2011, 11:21 PM
#1
[RESOLVED] Terminal Service Control Resizing
I have a win form with a terminal service control on it so my program connects via RDP.
Using MSTSCLib.
When I change the form size I can't get the terminal service control to resize to the form.
I have set dock to fill and anchor to left, right, top, bottom with no luck. I have set both in properties and even created the resize event and set the controls in there on resize but the terminal service control stays the original size.
Code:
connRDP.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
connRDP.Dock = DockStyle.Fill;
Invalidate();
I have even tried setting the control to the form size but again no luck
Code:
connRDP.Height = this.Size.Height;
connRDP.Width = this.Size.Width;
Invalidate();
Is there some special way I need to tell the Terminal Service Control to resize to the form?
Thanks in advance
Last edited by Omegadarkest; May 19th, 2011 at 11:28 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|