borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Books?) New Topic New Poll Post Reply
AndreaVB Forum : C# : Create Macro To Build Classes
Poster Message
dcostelloe
Level: VB Guru

Registered: 11-06-2002
Posts: 74

icon Create Macro To Build Classes  Archived to Disk

Under Tools Select Macros then Select Macro Explorer.
Right Click Macro Explorer Window Heading Macros select New Macro Project

Add this:
Sub AddStringClass()
DTE.UndoContext.Open("Add String Class")
DTE.ActiveDocument.Selection.Text = "public string YourClass(string strText , int intValue)"
            DTE.ActiveDocument.Selection.NewLine()
            DTE.ActiveDocument.Selection.NewLine()
            DTE.ActiveDocument.Selection.Text = "{"
            DTE.ActiveDocument.Selection.NewLine()
            DTE.ActiveDocument.Selection.NewLine()
            DTE.ActiveDocument.Selection.NewLine()
            DTE.ActiveDocument.Selection.NewLine()
            DTE.ActiveDocument.Selection.NewLine()
            DTE.ActiveDocument.Selection.NewLine()
            DTE.ActiveDocument.Selection.Text = "}"
            DTE.ActiveDocument.Selection.NewLine()
            DTE.ActiveDocument.Selection.NewLine()
DTE.UndoContext.Close()
End Sub

Now Thats Cool


____________________________
Life is but a merry go round
around and around :-)

Visit us today:
http://www.welford-costelloe.com

05-08-2002 at 11:45 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : C# : Create Macro To Build Classes
Previous Topic (Books?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder