473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

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
Nov 20 '05 #1
2 1943
"WRB" <Wm******@aol.com> wrote in message
news:c5****************************@phx.gbl...
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

Nov 20 '05 #2
Hello,

"WRB" <Wm******@aol.com> schrieb:
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.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matthew Louden | last post by:
When I open an existing ASP.NET application developed by another machine, it has the following error messages: I am sure .NET framework is installed and have the same version as another machine. ...
2
by: Roberto Rocco | last post by:
Whenever I try to create a new ASP Web Page I get this message : "Visual Studio cannot create or open the application because the Web server on this computer is not running. Start the Web server...
2
by: Ganesh Ramamurthy | last post by:
Hi Experts, I cannot create new classes in my web project. I am getting the following error. Could not run the 'C:\Program Files\Microsoft Visual Studio .NET...
2
by: Jay Bienvenu | last post by:
I cannot create new Web applications in Visual Studio .NET 2003. I get this error message: "Visual Studio .NET cannot create or open the application. The likeliest problem is that required...
2
by: Patrick | last post by:
I have 2 developper machine running visual studio 2003 and Windows 2000. On the first machine (Machine A) I may create a new asp project without problem. On the second (Machine B) I cannot create...
0
by: Deane | last post by:
When I try to create a new ASP.Net project in Visual Studio, it prompts me to create it here: http://localhost/WebApplication1 I want this application to be in the root of the localhost...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
8
by: digitalorganics | last post by:
What are the reason one would get this error: TypeError: Cannot create a consistent method resolution order (MRO) for bases object ?? I can provide the code if needed....
4
by: hellCoder | last post by:
Hi, I'm facing a nightmare here... I had Visual Studio 2003 installed and working perfectly but I decided to install Visual Studio 2005 just to begin to use it. The installation of the VS 2005...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.