473,403 Members | 2,366 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,403 software developers and data experts.

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 1827
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Martin Montgomery | last post by:
I have, for example, a property called myProperty. I would like, when using a property grid to display the property name as "My Property". Is this possible. Is there an attribute etc Thank ...
3
by: Sam Sungshik Kong | last post by:
Hello! While using panel control, I wondered a thing. Panel class is subclass of Control class. Control class has KeyPress event and Focus() method, etc... Then Panel class must have them. I...
45
by: Brett | last post by:
If I do this without declaring a corresponding field, is it considered bad design? What are the advantages or disadvantages to either method? Notice there is not set. public string URL { get...
4
by: Bryan V. | last post by:
Hello, I am a long time VB6 user, and am trying to make a VB.Net DLL. I am having one problem using the new language, how do I add custom properties to a DLL? The properties that a user can adjust...
11
by: LDD | last post by:
What is the real benefit of using Properties? You can declare class variables either public/private. I'm not sure I understand the true benefit. Especially if you are reading from/writing to...
1
by: Christophe Peillet | last post by:
I have a CompositeControl with two types of properties: 1.) Mapped Properties that map directly to a child control's properties (ex.: this.TextboxText = m_txt.Text). These properties are handled...
2
by: mgoold2002 | last post by:
Hello. I've just begun programming in VB .NET, and I'm trying to turn all my modules into classes. In order to retrieve/exchange values from one class to another, I initiated New instances of the...
17
by: David C. Ullrich | last post by:
Having a hard time phrasing this in the form of a question... The other day I saw a thread where someone asked about overrideable properties and nobody offered the advice that properties are...
4
by: FullBandwidth | last post by:
I have been perusing various blogs and MSDN pages discussing the use of event properties and the EventHandlerList class. I don't believe there's anything special about the EventHandlerList class in...
4
by: Josh Valino | last post by:
Hi group, Is there a way in C# (.Net 3.5 FW) for me to define an abstract class that has some properties, and then in each derived class, select which properties I'd like available and which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.