Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Previously visible user control becomes invisible in design view of winform(vb.net) in VS 2008.
 

Previously visible user control becomes invisible in design view of winform(vb.net) in VS 2008.

Hello Sir,

My VB.NET window application on Visual Studio 2008 hasa user control applied on some forms in same application.

The user control, having two textbox controls and a button control,has been put in different tabpages of system.windos.form.tabcontrol in forms.

Though the Controls remain visible for first 2 or 3 successful executions and works fine but afterwards the textBox and button controls visible property becomes false making them invisible in design mode as well as running mode.

The usercontrol's visible property remains True only the inside child controls visible property becomes False.I have ensured that incodebehindno such kind of code has been written.

Can youhelp me out by giving some solution of it.

Regards,

Deepak Kumar Mohanty

Deepak Kumar Mohanty  Tuesday, July 14, 2009 10:24 AM

Hi Deepak,

We need to trace all the places referencing the Visible property and Hide method of he controls to check if we hide the controls at some places. These are the methods to trace the places:

1. Press Ctrl + F. Then type “Visible�or “Hide�and click OK.

2. Right click the Visible property or Hide method, and select Find All References. Then you would see the results in Find Symbol Results view.

It is appreciated if you could create a small project in which the error can be reproduced and email that project to me. So that I can debug the program and figure out the root cause. My email is alala666888@hotmail.com.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Thursday, July 16, 2009 10:43 AM

Hi,

We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Best regards,
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Tuesday, July 21, 2009 3:03 AM

You can use google to search for other answers

Custom Search

More Threads

• Designer view can't open my Form!
• A bug in MSDN sample: DesignerHost.exe
• Probem in Loading the Form at Design time
• Can't hide base class properties
• How to set an event when the desing-time is initalizing?
• windows forms deployment
• Combo box resizing
• Taking backup of SQL Server 2000 database in VB.Net 2005?
• Combining already programmed projects to one big'n
• I want to have a WinForm screen like a IE screen with vertical scrollbar, with Form1.Size(1036,780) more than Max Height.