Display Issue when embedding forms into tabpages

  • Thread starter Thread starter Dominic via DotNetMonster.com
  • Start date Start date
D

Dominic via DotNetMonster.com

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
 
Ok UserControl is probably the way to go.. but I am assuming you want to
keep the code and not do much changes...

If you are using forms.. the Form has property called Maximum size and
Minimum size property maybe those 2 are affecting you?? check that out..


Vijay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top