469,883 Members | 1,080 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,883 developers. It's quick & easy.

Display issue when embedding forms into tab pages

With a little help from someone in this forum, I am currently creating forms
and then embedding them into tabpages, so that I get a display similar to
Lotus Notes. I have one container window, so I am using this approach as an
alternative to a MDI container.

My issue is that when I resize the container form, the controls that anchored
to the right in the embedded form do not move with the container form. After
investigating I have found that the embedded form has a set height and width.

Even though I can access other attributes of the form and change them once it
has been embedded as a tabpage (e.g. FormBorderStyle property) I cannot
simply adjust the height or the width properties of the embedded form to be
the same as the tab control in the container window (which has a dock type of
fill).

It would be greatly appreciated if anybody else who has gone with this
solution and has overcome this issue, if they could let me know what they did.
My only alternative is to create all forms as UserControls instead, as the
anchoring properties will work then. But I would prefer to use forms as their
as a custom interface I need to implement.

regards,

Dominic

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200604/1
Apr 3 '06 #1
1 1359
I have just realised and tested implementing the same interface through a
user control and it works. So i guess there is no reason against doing that.

But I would still prefer to use forms vs user controls. So if anyone still
has a solution for over coming the anchoring problem in the embedded forms I
would still like to hear about it. Or if there are any short comings I am
going to hit then please let me know - I am still a newbie with this :)

regards,

Dominic

Dominic wrote:
With a little help from someone in this forum, I am currently creating forms
and then embedding them into tabpages, so that I get a display similar to
Lotus Notes. I have one container window, so I am using this approach as an
alternative to a MDI container.

My issue is that when I resize the container form, the controls that anchored
to the right in the embedded form do not move with the container form. After
investigating I have found that the embedded form has a set height and width.

Even though I can access other attributes of the form and change them once it
has been embedded as a tabpage (e.g. FormBorderStyle property) I cannot
simply adjust the height or the width properties of the embedded form to be
the same as the tab control in the container window (which has a dock type of
fill).

It would be greatly appreciated if anybody else who has gone with this
solution and has overcome this issue, if they could let me know what they did.

My only alternative is to create all forms as UserControls instead, as the
anchoring properties will work then. But I would prefer to use forms as their
as a custom interface I need to implement.

regards,

Dominic


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200604/1
Apr 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Scott | last post: by
2 posts views Thread by Aaron | last post: by
3 posts views Thread by Dragon | last post: by
1 post views Thread by Dominic via DotNetMonster.com | last post: by
2 posts views Thread by Michael Maes | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.