469,945 Members | 1,756 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

How to add properties in class?

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
3 1709
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
<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
* =?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.

Similar topics

3 posts views Thread by Martin Montgomery | last post: by
3 posts views Thread by Sam Sungshik Kong | last post: by
45 posts views Thread by Brett | last post: by
4 posts views Thread by Bryan V. | last post: by
11 posts views Thread by LDD | last post: by
17 posts views Thread by David C. Ullrich | last post: by
4 posts views Thread by Josh Valino | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.