Form Designer ?

MTSkull

Well-known member
Joined
Mar 25, 2003
Messages
135
Location
Boulder, Colorado
I have a form I want to modify named Search. I saved it as SearchPat, and then added it to my project as an exsisting item. How do I get dot net to recognize it as a form so I can edit it with the form designer.

Thanks
MTS
 
If it inherits from Windows.System.Form (or some other class that inherits from that), then the designer should recognize it automatically. Does the file you chose have the proper extension (cs or vb)? If not, the project may think its a resource and not compilable source code (you can change that in the files properties - click on the file in the solution explorer than open the properties window).

-Ner
 
If it shows up as a class module and not as a form and you copied the form and renamed the file then the problem is the class name conflicts with the same class you copied from.

In the new form, view code and make sure Class declaration is not the same as the form copied from.

Example:
If you copied Search.vb to SearchPat.vb and Search.vb shows up as a form and SearchPat.vb shows up as a class, then the class declaration for SearchPat.vb is Public Class Search, which should be changed to Public Class SearchPat.
 
Back
Top