473,394 Members | 1,813 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.

Creating my First Windows Application - UI problem

Hi,

I am trying to write my first Windows application using VB.NET and I
am having some difficulties designing the UI.

Basically its one Windows Form with 4 menus on the top (no drop
downs). When you click on any of the menu the UI changes. For instance
clicking on the first menu shows a bunch of textboxes allowing the
user to enter some information and click a button. The next menu will
let user choose a file from a dropdown menu and display it in a rich
text box. Etc.

The way I am thinking of doing it right now is have one form, and have
functions that display/hide the different controls when each menu is
clicked. So when someone clicks the second menu, I call the hide
display routines of the other three menus to hide the controls that
make up the UI for those three menus. The problem with this is that
since I have one form basically, my UI in the VS.NET is going to look
very ugly even if it looks clean to the user.

My other approach is to use multiple forms. However, I don't want to
pop up new windows for each menu. I just want the working space to
change. If in the backdrop that means switching between different
forms, I am ok with that, as long as the user does not see multiple
forms popping up etc. How do I do that?

It seems pretty simple but I just can't get my head around it. I have
not developed any complex windows applications in any VB flavour
before so this is all a little new to me.

Thanks.

Asad
Nov 21 '05 #1
3 1899

Try placing the controls for each menu on a panel control and simply hide or
show the panel control that corresponds to each menu choice.

Or, since you do not have any sub-menu items, have you considered using the
tab control?

"Asad" <as*******@hotmail.com> wrote in message
news:fd**************************@posting.google.c om...
Hi,

I am trying to write my first Windows application using VB.NET and I
am having some difficulties designing the UI.

Basically its one Windows Form with 4 menus on the top (no drop
downs). When you click on any of the menu the UI changes. For instance
clicking on the first menu shows a bunch of textboxes allowing the
user to enter some information and click a button. The next menu will
let user choose a file from a dropdown menu and display it in a rich
text box. Etc.

The way I am thinking of doing it right now is have one form, and have
functions that display/hide the different controls when each menu is
clicked. So when someone clicks the second menu, I call the hide
display routines of the other three menus to hide the controls that
make up the UI for those three menus. The problem with this is that
since I have one form basically, my UI in the VS.NET is going to look
very ugly even if it looks clean to the user.

My other approach is to use multiple forms. However, I don't want to
pop up new windows for each menu. I just want the working space to
change. If in the backdrop that means switching between different
forms, I am ok with that, as long as the user does not see multiple
forms popping up etc. How do I do that?

It seems pretty simple but I just can't get my head around it. I have
not developed any complex windows applications in any VB flavour
before so this is all a little new to me.

Thanks.

Asad

Nov 21 '05 #2
What about trying to use a tab control w/o the tabs showing. That way the
user doesn't see a new form popping up and your design side of things is
nice looking too. Just anchor/dock the tab control all 4 sides of your form
and have your menu item change the tab that is displayed.

Another way would be to make a MDI style. Have one parent and 4 childs that
full the entire client portion. You would have to hide the control box of
the child and all but you should be able to make it work. I think this
would be more work than the tab idea.

Good luck
Chris
"Asad" <as*******@hotmail.com> wrote in message
news:fd**************************@posting.google.c om...
Hi,

I am trying to write my first Windows application using VB.NET and I
am having some difficulties designing the UI.

Basically its one Windows Form with 4 menus on the top (no drop
downs). When you click on any of the menu the UI changes. For instance
clicking on the first menu shows a bunch of textboxes allowing the
user to enter some information and click a button. The next menu will
let user choose a file from a dropdown menu and display it in a rich
text box. Etc.

The way I am thinking of doing it right now is have one form, and have
functions that display/hide the different controls when each menu is
clicked. So when someone clicks the second menu, I call the hide
display routines of the other three menus to hide the controls that
make up the UI for those three menus. The problem with this is that
since I have one form basically, my UI in the VS.NET is going to look
very ugly even if it looks clean to the user.

My other approach is to use multiple forms. However, I don't want to
pop up new windows for each menu. I just want the working space to
change. If in the backdrop that means switching between different
forms, I am ok with that, as long as the user does not see multiple
forms popping up etc. How do I do that?

It seems pretty simple but I just can't get my head around it. I have
not developed any complex windows applications in any VB flavour
before so this is all a little new to me.

Thanks.

Asad

Nov 21 '05 #3
What about trying to use a tab control w/o the tabs showing. That way the
user doesn't see a new form popping up and your design side of things is
nice looking too. Just anchor/dock the tab control all 4 sides of your form
and have your menu item change the tab that is displayed.

Another way would be to make a MDI style. Have one parent and 4 childs that
full the entire client portion. You would have to hide the control box of
the child and all but you should be able to make it work. I think this
would be more work than the tab idea.

Good luck
Chris
"Asad" <as*******@hotmail.com> wrote in message
news:fd**************************@posting.google.c om...
Hi,

I am trying to write my first Windows application using VB.NET and I
am having some difficulties designing the UI.

Basically its one Windows Form with 4 menus on the top (no drop
downs). When you click on any of the menu the UI changes. For instance
clicking on the first menu shows a bunch of textboxes allowing the
user to enter some information and click a button. The next menu will
let user choose a file from a dropdown menu and display it in a rich
text box. Etc.

The way I am thinking of doing it right now is have one form, and have
functions that display/hide the different controls when each menu is
clicked. So when someone clicks the second menu, I call the hide
display routines of the other three menus to hide the controls that
make up the UI for those three menus. The problem with this is that
since I have one form basically, my UI in the VS.NET is going to look
very ugly even if it looks clean to the user.

My other approach is to use multiple forms. However, I don't want to
pop up new windows for each menu. I just want the working space to
change. If in the backdrop that means switching between different
forms, I am ok with that, as long as the user does not see multiple
forms popping up etc. How do I do that?

It seems pretty simple but I just can't get my head around it. I have
not developed any complex windows applications in any VB flavour
before so this is all a little new to me.

Thanks.

Asad

Nov 21 '05 #4

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

Similar topics

4
by: Altramagnus | last post by:
I have 30 - 40 type of different window. For each type I need about 20 instances of the window. When I try to create them, I get "Error creating window handle" My guess is there is a maximum...
1
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables...
6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
2
by: superseed | last post by:
Hi, I'm pretty new to C#, and I'm quite stuck on the following problem. I would like to add to my application a Windows.Form (singleton) on which I could display a message of one of the...
1
by: Asad | last post by:
Hi, I am trying to write my first Windows application using VB.NET and I am having some difficulties designing the UI. Basically its one Windows Form with 4 menus on the top (no drop downs)....
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
7
by: Nathan Sokalski | last post by:
I am having a problem saving an image with the same name it originally had. I have two similar versions of my code, one in which I close the FileStream used to open the original image before saving,...
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: 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
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
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.