By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,712 Members | 1,369 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,712 IT Pros & Developers. It's quick & easy.

Windows Forms

P: n/a
Just a general question...

When working with a form containing a treeview or similar control... if you
need to show different form fields depending on what is selected in the
treeview then what is the best way to deal with these form controls...?
Like, when they are all visible in the designer it can be absolute chaos...

So how do you guys deal with it? Is there a blank container control (can't
see one) that allows you to drop a screens worth of form controls onto...?
Kinda like the tab control but without the tabs... it's make things easier
to manage... Or do you go to the trouble of setting all form control
properties manually through code making the designer pointless...?

Thanks
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Cor
Hi

Take a look at "panel" , "groupbox" and to make it complet "statusbar"

For the rest there are a lot of answer.

"User controls", MDI forms, separated forms,
..................................

Cor
Nov 20 '05 #2

P: n/a
That does nothing to answer the question really... I can see what is in
front of my eyes in the toolbox.... what I want to know is how to best
manage when you have many of these on a single form and you need to flick
from one to the next when setting properties etc... once you have more than
a few of these controls on a form you just get lost and it becomes
unmanagable....

As an example, I have a form with a treeview on the left... on the right I
have a multitude of different controls to display depending on what the user
selects in the treeview... how do I manage all the controls on the right...
just plonk them all on top of each other...?

Ta

"Cor" <no*@non.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi

Take a look at "panel" , "groupbox" and to make it complet "statusbar"

For the rest there are a lot of answer.

"User controls", MDI forms, separated forms,
.................................

Cor

Nov 20 '05 #3

P: n/a

Hi,

Thanks for posting in this group.
Windows uses message model to manage all the UI windows(Including
controls). And all the controls have certain events for certain behaviors.
When you do different opertaions on these controls, you can handle related
event, then do the appropriate process.
Because all the controls and UI elements are in the same process,
especially, in the same thread, you can manipulate them freely in the
events.
For example, when you select a certain node of treeview, you can handle the
TreeView_Click event. In this event, you can set the form's text property
as the selected node's text. Or you can add the node's text string into
another listbox.
All these can be done freely.

If I misunderstand you, please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: <->
| References: <uI**************@TK2MSFTNGP10.phx.gbl>
<#o*************@TK2MSFTNGP12.phx.gbl>
| Subject: Re: Windows Forms
| Date: Fri, 14 Nov 2003 09:25:03 +1100
| Lines: 32
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <eA*************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 202-44-189-210.nexnet.net.au 202.44.189.210
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:156676
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| That does nothing to answer the question really... I can see what is in
| front of my eyes in the toolbox.... what I want to know is how to best
| manage when you have many of these on a single form and you need to flick
| from one to the next when setting properties etc... once you have more
than
| a few of these controls on a form you just get lost and it becomes
| unmanagable....
|
| As an example, I have a form with a treeview on the left... on the right I
| have a multitude of different controls to display depending on what the
user
| selects in the treeview... how do I manage all the controls on the
right...
| just plonk them all on top of each other...?
|
| Ta
|
|
|
| "Cor" <no*@non.com> wrote in message
| news:%2***************@TK2MSFTNGP12.phx.gbl...
| > Hi
| >
| > Take a look at "panel" , "groupbox" and to make it complet "statusbar"
| >
| > For the rest there are a lot of answer.
| >
| > "User controls", MDI forms, separated forms,
| > .................................
| >
| > Cor
| >
| >
|
|
|

Nov 20 '05 #4

P: n/a
Yep, you misunderstood big time... but thats ok... I'll try to explain...

I have control overload on my form... I have many panels holding form
controls which are shown or hidden depending on what it selected in the
treeview on the left... I find it hard to navigate to a particular form
control on a particular panel (or whatever container I have used)... it
would be handy to be able to place them on a seperate area of the designer
so they can all be viewed at once, but still appear in the correct place
when the app is run...

Currently to navigate to a panel buried under others I have to use the
dropdown list above the Properties window in the .Net IDE... or click on the
topmost one and select send to back... when you have too many controls on
the designer you can't manage them effectively....

Does that explain the problem I have?

Cheers

""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:6o**************@cpmsftngxa06.phx.gbl...

Hi,

Thanks for posting in this group.
Windows uses message model to manage all the UI windows(Including
controls). And all the controls have certain events for certain behaviors.
When you do different opertaions on these controls, you can handle related
event, then do the appropriate process.
Because all the controls and UI elements are in the same process,
especially, in the same thread, you can manipulate them freely in the
events.
For example, when you select a certain node of treeview, you can handle the TreeView_Click event. In this event, you can set the form's text property
as the selected node's text. Or you can add the node's text string into
another listbox.
All these can be done freely.

If I misunderstand you, please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: <->
| References: <uI**************@TK2MSFTNGP10.phx.gbl>
<#o*************@TK2MSFTNGP12.phx.gbl>
| Subject: Re: Windows Forms
| Date: Fri, 14 Nov 2003 09:25:03 +1100
| Lines: 32
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <eA*************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 202-44-189-210.nexnet.net.au 202.44.189.210
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:156676
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| That does nothing to answer the question really... I can see what is in
| front of my eyes in the toolbox.... what I want to know is how to best
| manage when you have many of these on a single form and you need to flick | from one to the next when setting properties etc... once you have more
than
| a few of these controls on a form you just get lost and it becomes
| unmanagable....
|
| As an example, I have a form with a treeview on the left... on the right I | have a multitude of different controls to display depending on what the
user
| selects in the treeview... how do I manage all the controls on the
right...
| just plonk them all on top of each other...?
|
| Ta
|
|
|
| "Cor" <no*@non.com> wrote in message
| news:%2***************@TK2MSFTNGP12.phx.gbl...
| > Hi
| >
| > Take a look at "panel" , "groupbox" and to make it complet "statusbar" | >
| > For the rest there are a lot of answer.
| >
| > "User controls", MDI forms, separated forms,
| > .................................
| >
| > Cor
| >
| >
|
|
|

Nov 20 '05 #5

P: n/a
How about creating them all as docked MDI forms.. Have the treeview in an
mdi form docked to the left hand side, and then just load up the correct
form as an mdi in code docked to the right.

Will that work for you ?

HTH
Simon
<-> wrote in message news:ev**************@TK2MSFTNGP12.phx.gbl...
Yep, you misunderstood big time... but thats ok... I'll try to explain...

I have control overload on my form... I have many panels holding form
controls which are shown or hidden depending on what it selected in the
treeview on the left... I find it hard to navigate to a particular form
control on a particular panel (or whatever container I have used)... it
would be handy to be able to place them on a seperate area of the designer
so they can all be viewed at once, but still appear in the correct place
when the app is run...

Currently to navigate to a panel buried under others I have to use the
dropdown list above the Properties window in the .Net IDE... or click on the topmost one and select send to back... when you have too many controls on
the designer you can't manage them effectively....

Does that explain the problem I have?

Cheers

""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:6o**************@cpmsftngxa06.phx.gbl...

Hi,

Thanks for posting in this group.
Windows uses message model to manage all the UI windows(Including
controls). And all the controls have certain events for certain behaviors. When you do different opertaions on these controls, you can handle related event, then do the appropriate process.
Because all the controls and UI elements are in the same process,
especially, in the same thread, you can manipulate them freely in the
events.
For example, when you select a certain node of treeview, you can handle the
TreeView_Click event. In this event, you can set the form's text property as the selected node's text. Or you can add the node's text string into
another listbox.
All these can be done freely.

If I misunderstand you, please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| From: <->
| References: <uI**************@TK2MSFTNGP10.phx.gbl>
<#o*************@TK2MSFTNGP12.phx.gbl>
| Subject: Re: Windows Forms
| Date: Fri, 14 Nov 2003 09:25:03 +1100
| Lines: 32
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <eA*************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 202-44-189-210.nexnet.net.au 202.44.189.210
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:156676
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| That does nothing to answer the question really... I can see what is in | front of my eyes in the toolbox.... what I want to know is how to best
| manage when you have many of these on a single form and you need to

flick
| from one to the next when setting properties etc... once you have more
than
| a few of these controls on a form you just get lost and it becomes
| unmanagable....
|
| As an example, I have a form with a treeview on the left... on the right I
| have a multitude of different controls to display depending on what

the user
| selects in the treeview... how do I manage all the controls on the
right...
| just plonk them all on top of each other...?
|
| Ta
|
|
|
| "Cor" <no*@non.com> wrote in message
| news:%2***************@TK2MSFTNGP12.phx.gbl...
| > Hi
| >
| > Take a look at "panel" , "groupbox" and to make it complet

"statusbar"
| >
| > For the rest there are a lot of answer.
| >
| > "User controls", MDI forms, separated forms,
| > .................................
| >
| > Cor
| >
| >
|
|
|


Nov 20 '05 #6

P: n/a

Hi,

Sorry for misunderstanding you.
For this issue, I think it is by the design of the form designer, the
control overlapped on another, this depands on the z-order.(Normally, it
depands on the order in the code it being added into the controls
collection).
If you have many panel one on another, I think you can select different
control from the property's dropdownlist to select you wanted control, use
right click menu to set it to front.
Also, you can go to the code editor, to change its z-order(by changing the
order it being added int the controls collection)

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: <->
| References: <uI**************@TK2MSFTNGP10.phx.gbl>
<#o*************@TK2MSFTNGP12.phx.gbl>
<eA*************@TK2MSFTNGP11.phx.gbl>
<6o**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Windows Forms
| Date: Fri, 14 Nov 2003 19:59:31 +1100
| Lines: 107
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <ev**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 202-44-189-210.nexnet.net.au 202.44.189.210
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:156775
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Yep, you misunderstood big time... but thats ok... I'll try to explain...
|
| I have control overload on my form... I have many panels holding form
| controls which are shown or hidden depending on what it selected in the
| treeview on the left... I find it hard to navigate to a particular form
| control on a particular panel (or whatever container I have used)... it
| would be handy to be able to place them on a seperate area of the designer
| so they can all be viewed at once, but still appear in the correct place
| when the app is run...
|
| Currently to navigate to a panel buried under others I have to use the
| dropdown list above the Properties window in the .Net IDE... or click on
the
| topmost one and select send to back... when you have too many controls on
| the designer you can't manage them effectively....
|
| Does that explain the problem I have?
|
| Cheers
|
| ""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
| news:6o**************@cpmsftngxa06.phx.gbl...
| >
| > Hi,
| >
| > Thanks for posting in this group.
| > Windows uses message model to manage all the UI windows(Including
| > controls). And all the controls have certain events for certain
behaviors.
| > When you do different opertaions on these controls, you can handle
related
| > event, then do the appropriate process.
| > Because all the controls and UI elements are in the same process,
| > especially, in the same thread, you can manipulate them freely in the
| > events.
| > For example, when you select a certain node of treeview, you can handle
| the
| > TreeView_Click event. In this event, you can set the form's text
property
| > as the selected node's text. Or you can add the node's text string into
| > another listbox.
| > All these can be done freely.
| >
| > If I misunderstand you, please feel free to let me know.
| >
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
| >
| > --------------------
| > | From: <->
| > | References: <uI**************@TK2MSFTNGP10.phx.gbl>
| > <#o*************@TK2MSFTNGP12.phx.gbl>
| > | Subject: Re: Windows Forms
| > | Date: Fri, 14 Nov 2003 09:25:03 +1100
| > | Lines: 32
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <eA*************@TK2MSFTNGP11.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: 202-44-189-210.nexnet.net.au 202.44.189.210
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:156676
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | That does nothing to answer the question really... I can see what is
in
| > | front of my eyes in the toolbox.... what I want to know is how to best
| > | manage when you have many of these on a single form and you need to
| flick
| > | from one to the next when setting properties etc... once you have more
| > than
| > | a few of these controls on a form you just get lost and it becomes
| > | unmanagable....
| > |
| > | As an example, I have a form with a treeview on the left... on the
right
| I
| > | have a multitude of different controls to display depending on what
the
| > user
| > | selects in the treeview... how do I manage all the controls on the
| > right...
| > | just plonk them all on top of each other...?
| > |
| > | Ta
| > |
| > |
| > |
| > | "Cor" <no*@non.com> wrote in message
| > | news:%2***************@TK2MSFTNGP12.phx.gbl...
| > | > Hi
| > | >
| > | > Take a look at "panel" , "groupbox" and to make it complet
| "statusbar"
| > | >
| > | > For the rest there are a lot of answer.
| > | >
| > | > "User controls", MDI forms, separated forms,
| > | > .................................
| > | >
| > | > Cor
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.