Windows Develop Bookmark and Share   
 index > Windows Forms Designer > An idea for Visual Studio....
 

An idea for Visual Studio....

I recently noticed that when i go and drag my mouse over a number of items on a form, you cannot just add them to like a container. For example, what im trying to get at is when you have all the items selected and you want to name them something so when a form starts up, and you want to make them visible = true or visible = false, i do not see that possibility. If this is already in VS, how do i do so? HOPEFULLY everyone understands what im trying to get at here!
OMG, its Joe Ginley!
  • Moved byYang CaoMSFTMonday, August 03, 2009 3:37 PMWinForm Designer related issue (From:Visual Studio Class Designer)
  •  
JoeGinley  Monday, August 03, 2009 1:42 AM
I was wrong, sorry guys, i just tested it and you can use a foreach statement to make all controls visible or not.
OMG, its Joe Ginley!
JoeGinley  Wednesday, August 05, 2009 3:59 AM
Looks you need to post to the Windows Form Designer forum.

Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP
Sheng Jiang 蒋晟  Monday, August 03, 2009 3:24 AM
Hi mcgin1591,

Sorry your question is not clear to me. Once you have selected multi controls on a form, you can set Visible property in PropertyGrid window in VS. Why do you say "i do not see that possibility"?

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Wednesday, August 05, 2009 3:34 AM
Yes but at runtime you cannot select all the controls and change their visibility, or even if you want to code it, you cannot go intot he designer code and put them all set to visible is false can you? from what i know you can only do each control seperately, unless its possible with a for each statement?
OMG, its Joe Ginley!
JoeGinley  Wednesday, August 05, 2009 3:53 AM
I was wrong, sorry guys, i just tested it and you can use a foreach statement to make all controls visible or not.
OMG, its Joe Ginley!
JoeGinley  Wednesday, August 05, 2009 3:59 AM
Hi mcgin,

foreach statement to set each controls property is what I want to say. Did you have any further question about it?
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Wednesday, August 05, 2009 4:02 AM
Nope that is all, thanks for the help!
OMG, its Joe Ginley!
JoeGinley  Thursday, August 06, 2009 12:09 AM

You can use google to search for other answers

Custom Search

More Threads

• c++/cli designer question
• Custom User Control
• Re: designer can't load form. Where is 'more information'?
• OnPaintEvent Issue(help please)
• Controls Resize Problem
• Time slider Control
• Design Surface - Collection type properties not firing ComponentChanged
• PropertyGrid where one property dropdown dependant on another property
• Barcord Scan
• Designer serialization doesn't work