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
 
Hi Kathy

Also, ensure that it is the _first_ class in the module.

HTH

Charles
 
Hi Jan,
I don't know if it is the solution, but I find your answer clever
:-)
Cor
 
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?
 
kathy said:
my class is not in a namespace:


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

Why?

Shit happens. ;-)

(Old but true...)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top