hi friends..
In MDI applicatio i am located one form( ex...tool Window ) for display the mdi child form.... and set toolwindow.Dock = DockStyle.Right... when maximize the child form docking properties are not worked....
|
| smsurendar Sunday, January 13, 2008 10:13 AM |
Hi,what do you want? I am not sure what do you want. Do you mean when you maximize the child form docking properties are not worked.... I think that when you maximize a childform, it will be full of the main form even you set the dock property . If you maximize the main form ,the child form will be dock the right.
If there is any misunderstanding with you, feel free to let me know.
Best Regards
Gavin
|
| Gavin Jin - MSFT Wednesday, January 16, 2008 6:20 AM |
I donot think you can set the Dock property for a Form.. It may be not available for a Form object.
|
| Prasant Swain Wednesday, January 16, 2008 6:29 AM |
You can set the propeties of how big do you want the form and where do you want it to open in relation to the screen, can someone with more experience than me explain the procedure please.
You can set properties or write code dealing with properties setting both of these parameters, size (horizontal 200 and vertical 300) along with paint location on screen (100,100) or something like that.
|
| Duane in Japan Wednesday, January 16, 2008 7:01 AM |
You first set the forms start position to Manual. Like this. frm1.StartPosition = FormStartPosition.Manual;
and set the location like this below.. frm1.Location.X = 100; frm1.Location.Y = 100;
|
| Prasant Swain Wednesday, January 16, 2008 7:10 AM |
I haven't tried using a MDI Form for a toolwindow, but this is what I use to dock a regular form to a parent window.
frm.TopLevel = false;
frm.FormBorderStyle = FormBorderStyle.None;
frm.Parent = this;
frm.Dock = DockStyle.Right;
frm.Visible = true;
frm.BringToFront(); |
| JRQ Wednesday, January 16, 2008 8:08 PM |
I tried with the following code to dock a form to the right of the MdiParent form and no problem when maximizing... post some code here would be helpful for us to help you
private void MDIParent1_Load(object sender, EventArgs e) { Form f = new Form(); f.MdiParent = this; f.Dock = DockStyle.Right; f.Show(); } |
| Zhi-Xin Ye Thursday, January 17, 2008 3:08 PM |
Have you tried with GraphicsPath.AddString() method?
PS: For a different question, please start a new thread, thanks. |
| Zhi-Xin Ye Friday, January 18, 2008 4:36 AM |
Hi,what do you want? I am not sure what do you want. Do you mean when you maximize the child form docking properties are not worked.... I think that when you maximize a childform, it will be full of the main form even you set the dock property . If you maximize the main form ,the child form will be dock the right.
If there is any misunderstanding with you, feel free to let me know.
Best Regards
Gavin
|
| Gavin Jin - MSFT Wednesday, January 16, 2008 6:20 AM |
I donot think you can set the Dock property for a Form.. It may be not available for a Form object.
|
| Prasant Swain Wednesday, January 16, 2008 6:29 AM |
You can set the propeties of how big do you want the form and where do you want it to open in relation to the screen, can someone with more experience than me explain the procedure please.
You can set properties or write code dealing with properties setting both of these parameters, size (horizontal 200 and vertical 300) along with paint location on screen (100,100) or something like that.
|
| Duane in Japan Wednesday, January 16, 2008 7:01 AM |
You first set the forms start position to Manual. Like this. frm1.StartPosition = FormStartPosition.Manual;
and set the location like this below.. frm1.Location.X = 100; frm1.Location.Y = 100;
|
| Prasant Swain Wednesday, January 16, 2008 7:10 AM |
I haven't tried using a MDI Form for a toolwindow, but this is what I use to dock a regular form to a parent window.
frm.TopLevel = false;
frm.FormBorderStyle = FormBorderStyle.None;
frm.Parent = this;
frm.Dock = DockStyle.Right;
frm.Visible = true;
frm.BringToFront(); |
| JRQ Wednesday, January 16, 2008 8:08 PM |
I tried with the following code to dock a form to the right of the MdiParent form and no problem when maximizing... post some code here would be helpful for us to help you
private void MDIParent1_Load(object sender, EventArgs e) { Form f = new Form(); f.MdiParent = this; f.Dock = DockStyle.Right; f.Show(); } |
| Zhi-Xin Ye Thursday, January 17, 2008 3:08 PM |
hi friend...
i want to add string in graphics path.. for example t is string means i got output like below figure.....
_ _ _ _ _ !_ _ _ _! ! ! ! ! !_!
i want output like normal string -------> T
|
| smsurendar Friday, January 18, 2008 4:31 AM |
Have you tried with GraphicsPath.AddString() method?
PS: For a different question, please start a new thread, thanks. |
| Zhi-Xin Ye Friday, January 18, 2008 4:36 AM |
hi friend...
i tried GraphicsPath.AddString() method.....In this method i got output like below..
for example t is string means....
_ _ _ _ _ !_ _ _ _! ! ! ! ! !_!
i want output like normal string -------> - - - - - ! !
|
| smsurendar Friday, January 18, 2008 4:59 AM |