By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,386 Members | 1,782 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,386 IT Pros & Developers. It's quick & easy.

How to add properties in class?

P: n/a
hi friends

I have create one class in VB.Net, named as TestCtrl.V

Now, i want to add some properties in that class. In VB, there is add-in component (Class Builder Utility) by which we can add properties in class

But in dotnet how to add properties. Is there any add-in components available or we have to write them manually

regards
Ashish
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I miss the class builder a bit too.
In VS.NET you can just start typing in your property and after you enter the
first line it will automatically fill in most of rest of the typing for you.

Or you can use Visio 2003 enterprise architect. You can create an object
model diagram, defining all your objects and properties and it will generate
the code for you. The generated code is customizable too. You can also
reverse engineer your code to keep your diagrams in sync.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


<Ashish Patel> wrote in message
news:88**********************************@microsof t.com...
hi friends,

I have create one class in VB.Net, named as TestCtrl.Vb

Now, i want to add some properties in that class. In VB, there is add-in component (Class Builder Utility) by which we can add properties in class.
But in dotnet how to add properties. Is there any add-in components available or we have to write them manually?
regards,
Ashish

Nov 20 '05 #2

P: n/a
<Ashish Patel> schrieb

I have create one class in VB.Net, named as TestCtrl.Vb

Now, i want to add some properties in that class. In VB, there is
add-in component (Class Builder Utility) by which we can add
properties in class.

But in dotnet how to add properties. Is there any add-in components
available or we have to write them manually?


Type
public property prop as integer<Enter>
and the editor will create the procedures for you.

I've never used/needed the class wizard in previous versions.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3

P: n/a
* =?Utf-8?B?QXNoaXNoIFBhdGVs?= <Ashish Patel> scripsit:
I have create one class in VB.Net, named as TestCtrl.Vb

Now, i want to add some properties in that class. In VB, there is add-in component (Class Builder Utility) by which we can add properties in class.

But in dotnet how to add properties. Is there any add-in components available or we have to write them manually?


You will have to type the code:

\\\
Public Property Foo() As Integer
///

.... and press return. This will create the body of the property. When
implementing an interface, skeletons for properties are created too.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.