471,309 Members | 1,077 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,309 software developers and data experts.

Making the designer ignore a form / control

Is there any (good) way to stop the designer trying to load a specific
form/control when I double-click it in the solution explorer? Basically, I
have some controls that either use generics or are base (inheritance) forms
best viewed in the code view. I looked at the attributes in
System.ComponentModel, but couldn't find much that helps...

I can add the following before my control declaration, which successfully
stops the designer displaying it (since the designer doesn't like a class to
preceed a form in the source), but it is not very elegant; ideally I want it
to just go straight to the code, as though I had right-clicked and selected
"View Code"

internal class StopDesigner { } // nasty hack to break the designer


Dec 8 '05 #1
0 1045

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Derrick | last post: by
8 posts views Thread by Aaron Smith | last post: by
4 posts views Thread by Rod Gill | last post: by
1 post views Thread by Lucien Dol | last post: by
18 posts views Thread by dbahooker | last post: by
2 posts views Thread by ZBINContact | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.