Windows Develop Bookmark and Share   
 index > Windows Forms Designer > FormDesigner not available for usercontrol and should be.
 

FormDesigner not available for usercontrol and should be.

I have several user control files that when I double click them will open up into code view. In fact, design view is not even available for them (the icon in the solution explorer is the class icon instead of the user control icon). All of the other user controls work just fine. I can even create a new user control, copy ALL of the code from the bad user control into it, and it opens in design view just fine.

Here is the question... how does Visual Studio keep track of whether or not a file can be opened in design view? Is there a way to clear this? My issue can't be with code because I have two files with absolutely identical code but one does not have the option to open it in the forms designer and the other one does.

This is in Visual Studio 2003 Enterprise Edition.

BlazingFox  Friday, August 26, 2005 8:55 PM
I have also experienced the unlinking of a UserControl's editing with VisualStudio.  I had to delete the entire file, and add a new file with the same code in order to get VisualStudio to edit the UserControl in design mode.

-Greg
Greg Shaffer  Tuesday, August 30, 2005 7:14 PM
Ugh! I've already done that. I was hoping to figure out why in the world it happens and what I can do about it. I'm scared that I'm going to have several hundred user controls some day and I will have to do this sort of manual fix to get them all back.

Surely there is someone who knows how to fix this without resorting to such drastic measures...

Thanks Greg.
BlazingFox  Tuesday, August 30, 2005 9:07 PM
Doesn't anyone at Microsoft have an answer for this? It sure seems like a simple question to someone in the know...
BlazingFox  Friday, September 02, 2005 2:09 AM

You can use google to search for other answers

Custom Search

More Threads

• Using IMenuCommandService
• DataGridView UserControl do not set the new columns proporties values
• How do I get to the Designer?
• ScrollBars
• Is there a way to make a user control act like a containter control
• Form designer generate code in incorrect order in my usercontrol
• hot tracking menuitems
• Compilation in IDE: persist component state
• Code Definition Window
• Resx design-time serialization