Blog

posts tagged with visual studio

Create Property Macro for VS.NET 2002 & 2003

0 Comments
By Fons Sonnemans, 01-jan-2002

By Fons Sonnemans

Download LocalizedText.zip

The CreateProperty macro is simple Visual Studio.Net (Final) macro which can be used to generate the code for a 'private Field and a public Property Get/Set method'.

Example:

1. Unzip the ReflectionIT macro.zip
 
2.  Start Visual Studio.Net.
 
3.  Open the Macro Explorer (Alt-F8)
 
4.  Right-click on the Macros, and select 'Load Macro Project...'
 
 
5.  Select the (unzipped) 'ReflectionIT.vsmacros' file and select 'Open'. 
6. Open a CodeWindow and add a public, private or protected field.

Example:

7. Select the text you just have entered and run the 'CreateProperty' macro

8. Your text is automatically replaced by a private field and an public property

Any suggestions and feedback for improving this article is most welcome. Send your suggestions and feedback to Fons.Sonnemans@reflectionit.nl


READ MORE

Visual Basic 6.0 Procedure Sort Add-In

0 Comments
By Fons Sonnemans, 01-jan-2002

By Fons Sonnemans

Download ProcedureSort.zip

The Procedures Sort Add-In is a great add-in for those who like well-organized code. You can use it to sort your procedures in the active CodeWindow alphabetically. It preserve all you procedure attributes, which you normally loose when you do it manually. Event-handlers and Interface-implementations will be placed at the end of your code.


Install & Usage:

1. Unzip the ProcedureSort.zip
 
2.  Register the ProcedureSort.dll you just unzipped using Regsvr32.exe.
 
3.  Start Visual Basic 6.0.
 
4.  Select menu 'Add-Ins', 'Add-in Manager...'.
 
 
5.  You see now an extra button in your Standard toolbar.

6. Open a CodeWindow. 

Example:

7. Click on the new 'Sort Procedures' toolbar button. All procedures will be sorted alphabetically. 

8. You can set the following options (Menu 'Add-Ins', 'Procedure Sort Options...'):
- Show Constructor and Destructor at top 
- Case Sensitive
- Number of empty lines between procedures


READ MORE

All postings/content on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer or sponsors. The content on this site is licensed under a Creative Commons Attribution By license.