Windows Develop Bookmark and Share   
 index > Windows Forms Designer > visibility of controlls while editing.
 

visibility of controlls while editing.

I dont know whether this is the right forum or not to post my problem.

I want to set the visibility of some controls to 'false' while editing in form[Design] so i can work with other controlls properly. can i do this?

any help would be appriciated.
jewelthief  Thursday, February 14, 2008 12:15 PM

Hi awaistanveer,

I don’t think that we can hide a control if the control is added to the form during design time. If we hide the control in design time, people will get confused whether he has already added the control to the form since he cannot see it. However, if it is a non UI presence component, you can use the DesignTimeVisibleAttribute Class to hide this component.

I know it may be a little difficult to select and edit the controls that behind others, but you can use the Visual Studio Document Outline window to navigate to that control and edit it.

Hope this helps.
Best regards.
Rong-Chun Zhang

Rong-Chun Zhang  Wednesday, February 20, 2008 3:16 AM

Hi awaistanveer,

I don’t think that we can hide a control if the control is added to the form during design time. If we hide the control in design time, people will get confused whether he has already added the control to the form since he cannot see it. However, if it is a non UI presence component, you can use the DesignTimeVisibleAttribute Class to hide this component.

I know it may be a little difficult to select and edit the controls that behind others, but you can use the Visual Studio Document Outline window to navigate to that control and edit it.

Hope this helps.
Best regards.
Rong-Chun Zhang

Rong-Chun Zhang  Wednesday, February 20, 2008 3:16 AM

You can use google to search for other answers

Custom Search

More Threads

• Strange behaviour when overriding TextBox.Text
• Custom Form Desinging
• Adding tabcontrols and grid view controls
• having cancel button in windows program problems
• Imagelist: Embedded Resource problem
• Get the ExternaProvider Control Refrence in the UITypeEditor
• toolbar inheritance
• TreeView and Images. Very Poor Quality Viewing
• VS2005 - Form Design error !
• Design question about containers controls with cross dependant properties