logo
vbRad Home
Source Code
Book Reviews
Forum
Links
About Us
Contribute

Compare Databases with SQL Effects Clarity
 
 Property Builder for VB.NET

Posted on
2/26/2004
Author:
Robert Gelb
Email:
Not Shown
Applies To OS:
Windows
Product:
N/A



Download:


Related:

One of the ways you can be a more efficient developer, is to write less stupid code. Writing Property code by hand is stupid, Property Builder for VB.NET is smart. You tell it the variable (like EmployeeID) and the data type and it will create the following code:

	Private mlngEmployeeID as Long

	Public Property EmployeeID() As Long
		Get
			Return mlngEmployeeID
		End Get
		Set(ByVal Value As Long)
			mlngEmployeeID = Value
		End Set
	End Property

Pretty easy. Included in the download is the installation (unzip and run the .msi file). If you wish to learn how to write add-ins, download the source code for the add-in. Finally, if you don't want to install the add-in, you can do the same thing with a macro. Except, it won't be as user-friendly and pain-free.

I took my inspiration from a similar tool for VB6 written by Paul Sheriff from PDSA, minus what I felt were superflous features. Also, please do not make a single modification and then release your own version without linking back here. That's pretty reasonable, I feel. One last thing, I wrote it in vs.net 2003, so it won't work in vs.net 2002. It is easy to port it back to vs.net 2002, but I simply don't have that product anymore

Download:




Add Your Comment  

Name: Email Address: all fields optional
Notify me via email when someone responds to this message (valid email required).

Enter the word:
 



Comments
#1. By GregCyrus. Posted on 4/24/2006 10:31:39 AM
Very nice and usefull tool - Collection as property could be integrated too - and a newline after inserting the GET/SET-Statements

#2. By Xanders. Posted on 6/15/2006 3:38:00 PM
Someone can help me i wrote a new property in my usercontrol and does't appear in desing mode.

Ej.
Dim _ScrollMinVl As Integer

Public Property ScrollValue() As Integer
Get
Return _ScrollMinVl
End Get
Set(ByVal value As Integer)
_ScrollMinVl = value
EvoScroll.Minimum = _ScrollMinVl
End Set
End Property

#3. By Kaushalendra Pandey. Posted on 1/25/2008 10:38:07 AM
I have seen this a very important tool to use. Reduces time for development. But I want to know that Suppose I have added a Property to a WinForm, Now I want to add comment to that property. i.e. when this property is displayed in the WinForm's property list it should display a short help regarding this at the bottom of property list.
How we can do that.

Waiting for your reply.

#4. By Jeff Law. Posted on 7/4/2010 9:57:16 PM
A great tool Robert!

I have converted it to VS2010, which required a few source-code changes.