473,378 Members | 1,420 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,378 software developers and data experts.

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 1499
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 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...
2
by: Aaron | last post by:
I've been making some Windows Forms UserControls and embedding them in HTML pages. This is working great...except if I try and use a 3rd party control on my UserControl. Has anybody played with...
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...
1
by: amir | last post by:
Hi, When compiling a page in VS2005 this morning I received 101 messages regarding schema problems in my web.config file. When I go to view an aspx page in my IIS, IE just displays a blank...
3
by: Jim Hill | last post by:
Well, I've found about a hundred thousand web pages where people have had the same problem I have but nary a page with a solution that works for me. I want to do a simple embed, so I've followed...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.