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

Multiple screens in the same application:

I've got an application that has several distinct purposes. I'd like to
make these available as different screens that the user can switch between
within a single form, using commands from the main Menu. (The "primary"
form serves only as a container for the Menu and the other screens.)

In VB 6, I was able to get a nice expression of this by using always-
maximized MDI children inside an MDI parent. Unfortunately, I don't seem to
have the same level of control over MDI children in .NET; they're
occasionally reverting to Normal status rather than Maximized no matter
what I do. Google didn't suggest any easy fixes here.

I am experimenting with UserControls instead. Using a UserControl with
..Dock = DockStyle.Fill seems to give an OK effect. I'm a little worried
that I'm going to give up important functionality with this approach that I
won't realize until later, though.

I can't be the only one who wants to switch the user view from one screen to
another inside a parent-type form. Is there a preferred approach to doing
this in .NET?

Suggestions appreciated.

Matt
Nov 21 '05 #1
5 1678
Matt,

Real strange that you did not find something on Google.
http://groups-beta.google.com/group/...d66101d43e80e3

I thought that this was one of those I have done as answer for your problem.

I hope this helps,

Cor
Nov 21 '05 #2
"Cor Ligthert" <no************@planet.nl> wrote in
news:ec**************@TK2MSFTNGP09.phx.gbl:
Matt,

Real strange that you did not find something on Google.
http://groups-beta.google.com/group/...t.languages.vb
/msg/e8d66101d43e80e3

I thought that this was one of those I have done as answer for your
problem.

I hope this helps,


I was shying away from solutions involving repeated resettings of
..Maximized, because I had seen others complain about slow responsiveness and
screen flicker. But I should probably give it a chance and see for myself.

At any rate, I appreciate the suggestion. Thanks.

Matt
Nov 21 '05 #3
An alternative might be to use a panel on the main form as the
container and then use regular forms for each "screen".

You would instantiate the form, set the TopLevel property to False and
then set their parent property to the panel.

I used a form with no border or caption and then called it's Show
method. It is then visible inside the panel.

Perhaps this simple method will be of use to you?

Chris

Nov 21 '05 #4
"Chris Dunaway" <du******@gmail.com> wrote in news:1111430947.311355.295150
@l41g2000cwc.googlegroups.com:
An alternative might be to use a panel on the main form as the
container and then use regular forms for each "screen".

You would instantiate the form, set the TopLevel property to False and
then set their parent property to the panel.

I used a form with no border or caption and then called it's Show
method. It is then visible inside the panel.

Perhaps this simple method will be of use to you?


Sounds promising, at any rate. Simple is best, as long as it works.

I'll try it out. Thanks for the suggestion.

Matt
Nov 21 '05 #5
"Chris Dunaway" <du******@gmail.com> wrote in news:1111430947.311355.295150
@l41g2000cwc.googlegroups.com:
An alternative might be to use a panel on the main form as the
container and then use regular forms for each "screen".

You would instantiate the form, set the TopLevel property to False and
then set their parent property to the panel.

I used a form with no border or caption and then called it's Show
method. It is then visible inside the panel.

Perhaps this simple method will be of use to you?


I played around with this approach today and it is working nicely. Thanks
again for the suggestion.

Also, inherited forms are way cool. That is all.

Matt
Nov 21 '05 #6

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

Similar topics

1
by: Daniel | last post by:
He's my situation, i work in a (big)room that has 3 projectors. I want to develop an application that can control all 3 screens displaying different live data, from a computer that has a video card...
0
by: Saravanan Subramanian | last post by:
Hi Folks I am looking for some articles on developing Multiple monitor applications using C#. The stuff on MSDN unfortunately is very rudimentary, and not really helpful. Anybody else has ideas...
3
by: Lizim | last post by:
Does anybody know if it is possible to write software that works across multiple monitors? and if so, is it possible to program one so it is private to the user / administrator and the other...
3
by: Martin | last post by:
Just wondered if you could give me some advice! At the moment we code out systems in COBOL and we are just starting to move everything to VB.net. Just wondering how you all manage when...
9
by: Quina | last post by:
Hi. Is there someone that can tell me how can I have multiple screens on the the same form, displaying only on at the time? Thank you all for any replys. Joćo Carias
3
by: Steve Marshall | last post by:
I'm looking at developing an application which would benefit from being able to work with 2 display monitors. But how do I work with multiple displays? I'd like to be able to control which...
8
by: Ed Dror | last post by:
Hi there ASP.NET 2.0 VB & SQL Express Lest take Northwind Categories Products as example I create a table that hold these two together and I create a stored procedure like select ProductID,...
0
Shashi Sadasivan
by: Shashi Sadasivan | last post by:
Hi All, i Have an application functionaluty which has 4 forms which are needed to interact by the user by dragging data from these forms to one another the main form is located in the MDI Parent...
0
by: veerusrahul | last post by:
I am new to dotnet. I have Baseform (Windows form) with some controls & PictureBox are top right corner which is used to display the status of network. I have an application with one login...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.