Windows Forms Designer?

  • Thread starter Thread starter kathy
  • Start date Start date
K

kathy

I have a MyForm.vb which is built in Studio.NET 2003.
Originally, I can use Windows Forms Designer to design my
form. But for some reason(?), The MyForm.vb icon changed
and I can not choose Windows Forms Designer to design
MyForm.vb using Solution Explorer.

What happened and how to fixed it?
 
Kathy,

Did you remove the statement 'Inherits System.Forms.Form' in the code of
MyForm.vb ? Without this statement your form becomes a normal class.

Regards,
Jan
 
kathy said:
I have a MyForm.vb which is built in Studio.NET 2003.
Originally, I can use Windows Forms Designer to design my
form. But for some reason(?), The MyForm.vb icon changed
and I can not choose Windows Forms Designer to design
MyForm.vb using Solution Explorer.

What happened and how to fixed it?

Sometimes it happens when you put the class in a namespace:

namespace Forms
class myform
inherits ...
end class
end namespace

Closing and reopening the solution or the IDE sometimes helps.
 
my class is not in a namespace:


but it is true that after I Close and reopen the IDE, It
works.

Why?
 
Back
Top