PC Review


Reply
Thread Tools Rate Thread

How to add properties in class?

 
 
=?Utf-8?B?QXNoaXNoIFBhdGVs?=
Guest
Posts: n/a
 
      18th May 2004
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
 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      18th May 2004
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:88C28A83-BDCC-484E-9907-(E-Mail Removed)...
> 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



 
Reply With Quote
 
Armin Zingler
Guest
Posts: n/a
 
      18th May 2004
<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

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      18th May 2004
* =?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/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem accessing Properties of class, not sure if class =?Utf-8?B?TWljcm9Nb3Ro?= Microsoft C# .NET 3 27th Jul 2006 02:23 PM
Instance of derived class does not show public methods or properties that are not in the inherited class D Witherspoon Microsoft Dot NET 5 28th Mar 2006 11:25 PM
Instance of derived class does not show public methods or properties that are not in the inherited class D Witherspoon Microsoft VB .NET 5 28th Mar 2006 11:25 PM
How to change public properties in base class as private in derived class. santel Microsoft C# .NET 4 21st Mar 2006 03:06 PM
Can I hide base class properties in a derived class? Martin Widmer Microsoft VB .NET 9 24th Jan 2006 12:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:04 AM.