472,805 Members | 942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 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 1801
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: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.