473,394 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Display Issue when embedding forms into tabpages

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...sharp/200604/1
Apr 3 '06 #1
1 3410
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

"Dominic via DotNetMonster.com" <u9483@uwe> wrote in message
news:5e330b0279e34@uwe...
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...sharp/200604/1

Apr 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Scott | last post by:
Relative newbie here, I'm looking to display the value of radio buttons and check boxes on the page before submission. So far I can do most of it. When "Hat" is checked there are to be no color...
4
by: Peter Row | last post by:
Hi, I have created a UserControl which is subsequently hosted on a standard form. My control has a TabControl on it but it has no TabPages configured. At runtime I create X pages and put a...
5
by: Paul Tomlinson | last post by:
Tabpages and Imagelists - I want to align the image to the left so I can display some text... All, I have a number of tabpages and on each tab page I currently have an image and some text, now...
13
by: KMiller | last post by:
I would like to control entry into one or more of the tabs > I have set up on my Tab control based on set rules. Does > anyone know how to grey-out the text so that a user will > see that they do...
10
by: Sarah Smith | last post by:
Hello, I am a bit of a newbie to VB.NET, but not totally new. I took the plunge recently and decided (along with my colleagues), to try to convert/port a VB6 client/server app to .Net. (I'm...
3
by: Dragon | last post by:
Hello, I developed an app which works fine in WinXP, but gives exceptions in WinME. In order to debug it, I tried to build a "makefile" to use with "vbc @file". So far I've ended up with: ...
1
by: Dominic via DotNetMonster.com | last post by:
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...
2
by: Michael Maes | last post by:
Hi, We have been using ImageLists in our Projects extensively. Many forms have two ILs with nearly 900 bmp's each. They are configured: 32Bit, Fuchsia, 16x16 (and one 24x24). In VS2003 there...
9
by: tshad | last post by:
I have a Windows App that is doing some work and then writing a "Now Processing..." line to the status line of the window as well as the Textbox on the form. But the problem is that the work is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.