VB.Net -cannot create classes in VB.net Studio

  • Thread starter Thread starter WRB
  • Start date Start date
W

WRB

I can't create a new class in MS Visual studio. THe add
new item comes up with categories and templates window.
It does not ask for the name of class and open the
appropriate editor. I found a reference to turn off anti-
virus scriptblocking which I did but no change in status
was observed. I didn't reboot but re-ran VSE. Is this a
typical MS situation. Would appreciate information.

-frustrated VB sixer
 
WRB said:
I can't create a new class in MS Visual studio. THe add
new item comes up with categories and templates window.
It does not ask for the name of class and open the
appropriate editor. I found a reference to turn off anti-
virus scriptblocking which I did but no change in status
was observed. I didn't reboot but re-ran VSE. Is this a
typical MS situation. Would appreciate information.

Which are you using (product & version - ie Visual Studio.NET
Std/Pro/Dev/Ent 2002/2003)?

Regardless, you should be able to RIGHT-click the Project and/or Solution
and select: Add -> Add Class...

Then you should see the templates window, and at the bottom you will see an
area to type in a Class name and an Open button. Even if you don't type a
name in, you can still just press open and it will add a new class.

Or you can just add a blank *.vb file and add the following code:

Public Class MyClass
End Class

And that way you won't need to use a template. It isn't like VB 6 where
there was all kinds of binary code and hidden stuff in the background, you
can add classes to any *.vb file by adding the definition (as above).

Let us know if you're still having problems.

HTH,
Jeremy
 
Hello,

WRB said:
I can't create a new class in MS Visual studio. THe add
new item comes up with categories and templates window.
It does not ask for the name of class and open the
appropriate editor. I found a reference to turn off anti-
virus scriptblocking which I did but no change in status
was observed. I didn't reboot but re-ran VSE. Is this a
typical MS situation. Would appreciate information.

Did it work? You must deactivate script blocking for VS.NET.
 
Back
Top