Page #171 (List of Tables)

 < Free Open Study > 


Chapter 1: What Is an Add-in?

Example 1-1: Comment Selected Block
Example 1-2: Displaying DTE Properties
Example 1-3: VB 6.0 Add-in Code
Example 1-4: Creating a Registry Entry

Chapter 2: Getting Started with the Add-in Wizard

Example 2-1: Generated Code
Example 2-2: Moving the CommandObj to Module Level
Example 2-3: Changes to the OnConnection Method
Example 2-4: Changes to the OnDisconnection Method
Example 2-5: Registry Keys for the Add-in
Example 2-6: QueryStatus Event
Example 2-7: Exec Event

Chapter 3: The Smart Desktop Add-in

Example 3-1: Modifying the OnConnection Method
Example 3-2: Modifying the OnDisconnection Method
Example 3-3: Modifying the Event Handler
Example 3-4: Code for frmTreeView
Example 3-5: TreeView AfterSelect Event
Example 3-6: The BlockComment Method
Example 3-7: Alternate BlockComment Method
Example 3-8: Improved BlockComment Method
Example 3-9: The BlockUnComment Method
Example 3-10: The BlockChange Method
Example 3-11: The BlockDelete Method
Example 3-12: GetCodeFromWindow
Example 3-13: PutCodeBack
Example 3-14: CountSpacesBeforeFirstChar
Example 3-15: Complete Connect Class

Chapter 4: Debugging an Add-in

Example 4-1: Protecting the Whole Procedure
Example 4-2: Selective Error Handling
Example 4-3: GenLocalErrorTrap Method
Example 4-4: GetToken
Example 4-5: Error Handling in the AfterSelect Event

Chapter 5: Manipulating Code in Windows

Example 5-1: Closing Saved Documents
Example 5-2: Document Object Example
Example 5-3: Using the TextSelection Object
Example 5-4: Insert Method of the TextSelection Object
Example 5-5: Using the VirtualPoint Object
Example 5-6: Retrieving Code from the Text Editor
Example 5-7: Retrieving Code from a Document
Example 5-8: Replacing Code in the Text Editor Window
Example 5-9: Inserting Module-Level Variables
Example 5-10: Adding a Procedure to the Bottom of a Document
Example 5-11: AddMethodToEndOfDocument
Example 5-12: Adding to the AfterSelect Event
Example 5-13: CloneProcedure
Example 5-14: CloneProc Form Code
Example 5-15: Docking Tool Windows Example
Example 5-16: Output Window Example

Chapter 6: Manipulating Controls on Forms

Example 6-1: Add-in Generated Code
Example 6-2: Automation Code
Example 6-3: Creating the Project
Example 6-4: Adding Buttons to the Form
Example 6-5: Printing the Component Properties
Example 6-6: Resizing a Control
Example 6-7: Repositioning the Button
Example 6-8: Changing the Button's Name and Text Properties
Example 6-9: Selecting a Component
Example 6-10: Looping Through the Collection of Selected Components
Example 6-11: Accessing Windows Designer Properties
Example 6-12: Adding an Event Handler
Example 6-13: Adding a Menu
Example 6-14: Completed Form Code

Chapter 7: The User Interface

Example 7-1: Add-in Code Created by the Add-in Wizard
Example 7-2: Code Modified to Add Menus
Example 7-3: AddNamedCommand Method Usage
Example 7-4: Adding an Add-in Toolbar
Example 7-5: Declaring Toolbar Objects
Example 7-6: AddAddinCmdBar Method
Example 7-7: Microsoft Office Toolbar and Menus
Example 7-8: Dimensioning Toolbar and Buttons
Example 7-9: Dimensioning Command Bar Events
Example 7-10: Calling the Command Creation Methods
Example 7-11: Calling the Office Control Creation Methods
Example 7-12: Dimensioning Menus and Events
Example 7-13: SetupOfficeMenus
Example 7-14: Making the TreeView Work
Example 7-15: UISystray Add-in Code Generated by the Wizard
Example 7-16: Connect Class Code for System Tray Activation
Example 7-17: Form1 Code

Chapter 8: The Macro Explorer and the Macros IDE

Example 8-1: CloseSavedWindows Macro
Example 8-2: Temporary Macro
Example 8-3: DuplicateSelectedLines Macro
Example 8-4: Commenting Visual Basic Code with a Macro
Example 8-5: Manually Created Macro
Example 8-6: Testing GetWholeProc
Example 8-7: OneFunctionView Macro from the Sample Macro Projects
Example 8-8: GetWholeProc Macro Function
Example 8-8: The Modified CloneProcedure Method
Example 8-9: The GetWholeProc Method Modified for Use in the Add-in
Example 8-10: DocTemplate Method
Example 8-11: CountOccurrences Helper Method
Example 8-12: AfterSelect Event of TreeView
Example 8-13: Procedure Before Being Documented

Chapter 9: Manipulating Projects

Example 9-1: Creating a Solution and Project
Example 9-2: OpenExistingSolution1 Macro
Example 9-3: RemoveProjectFromSolution Macro
Example 9-4: Listing the ProjectItems Collection
Example 9-5: Adding Items to the Project
Example 9-6: Enhanced Connect Class
Example 9-10: Maintain Build Rules Form
Example 9-11: TaskListManipulation
Example 9-12: CreateMyCodeSnippets Macro
Example 9-13: Adding a Pane to the Output Window
Example 9-14: OutputTaskItemString Example

Chapter 10: Multiple Languages in Add-ins

Example 10-1: C# Code for Form1
Example 10-2: Visual Basic Code Changes
Example 10-3: C# Add-in Code Created by the Add-in Wizard
Example 10-4: Visual Basic DLL Code
Example 10-5: Calling the Visual Basic DLL HelloWorld Method
Example 10-6: Sample Constructor Usage
Example 10-7: Sample Constructor Usage
Example 10-8: Sample Constructor Usage
Example 10-9: Determining the File Type
Example 10-10: GetCommentChars
Example 10-11: GetCommentCharForDoc Method
Example 10-12: CodeManipulation Class Commenting Methods
Example 10-13: CodeManipulation Methods for Visual Basic Only
Example 10-14: PutCodeBack Method
Example 10-15: GetWholeProc Method
Example 10-16: AddMethodToEndOfDocument Method

Chapter 11: Handling Automation Events

Example 11-1: ProjectsEvents Event Handlers
Example 11-2: WindowEvents Event Handlers
Example 11-3: TextEditorEvents Object Event Handler
Example 11-4: TaskListEvents Object Event Handler
Example 11-5: SolutionEvents Object Event Handler
Example 11-6: OutputWindowEvents Event Handlers
Example 11-7: DTEEvents Object Event Handlers
Example 11-8: DocumentEvents Object Event Handlers
Example 11-9: DebuggerEvents Object Event Handlers
Example 11-10: CommandEvents Object Event Handlers
Example 11-11: BuildEvents Object Event Handlers
Example 11-12: ProjectItemsEvents Object Event Handlers
Example 11-13: Connect Class Declaration Section
Example 11-13: WinOutput Class
Example 11-14: Using the WindowActivated Event
Example 11-15: TaskListEvents ItemAdded Event
Example 11-16: New TaskRemoved Event
Example 11-17: CReminder Class

Chapter 12: Putting It Together—Let's Build a Real Add-in

Example 12-1: Connect Class for the NET Desktop Add-in
Example 12-2: OnConnection Method Updated to Create a Toolbar
Example 12-3: Creating the Toolbar and Tool Buttons
Example 12-4: CUIToolBar Class
Example 12-5: Tool Button Event Handler
Example 12-6: Code for frmComment
Example 12-7: CMenuHandler Class
Example 12-8: EnterContextComments Method
Example 12-9: Display Method of frmGetComments
Example 12-10: CWindows Class
Example 12-11: Button Paste Code Click Event
Example 12-12: SetUpPaintProc Method
Example 12-13: SetUpPaintProcForCLang Method
Example 12-14: Timer1_Tick Event
Example 12-15: Linking the Events to Event Handlers
Example 12-16: Task List and Windows Event Handlers

Chapter 13: Migrating VB 6.0 Add-ins to .NET

Example 13-1: Upgraded Code with Diagnostics
Example 13-2: AddToIni Method
Example 13-3: Registry File for Add-in Manager Registry Entries

 < Free Open Study > 


Writing Add-Ins for Visual Studio  .NET
Writing Add-Ins for Visual Studio .NET
ISBN: 1590590260
EAN: 2147483647
Year: 2002
Pages: 172
Authors: Les Smith © 2008-2017.
If you may any questions please contact us: