TheSwamp

Code Red => .NET => Topic started by: Kerry on November 17, 2007, 04:13:56 AM

Title: How to create and load add-ins in Visual Studio .NET
Post by: Kerry on November 17, 2007, 04:13:56 AM
How to create and load add-ins in Visual Studio .NET

... my Saturday afternoon playtime ..

I started on this page, http://support.microsoft.com/kb/816167
but found it had a few too many errors/ discrepencies .. so ..

follow the piccys ...

Another Article
http://msdn.microsoft.com/msdnmag/issues/02/02/VSIDE/

Visual Studio 2005 SDK Version 4.0
http://www.microsoft.com/downloads/details.aspx?familyid=51A5C65B-C020-4E08-8AC0-3EB9C06996F4&displaylang=en
Title: Re: How to create and load add-ins in Visual Studio .NET
Post by: Kerry on November 17, 2007, 04:16:45 AM
Cont ...
Title: Re: How to create and load add-ins in Visual Studio .NET
Post by: Kerry on November 17, 2007, 04:27:57 AM
Cont ...

The Code ..
Code: [Select]
//----------------------------------------------
// Part of Connect.cs
// CodeHimBelonga kwb: 2007/11/17 19:23:45
//----------------------------------------------

        /* Execution Method added ; kwb
         * add Text to the IDE editor */
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public bool HeaderDateTime()
        {
            if (_applicationObject.ActiveDocument != null)
            {
                ((TextSelection)_applicationObject.ActiveDocument.Selection).Text =
                    "//----------------------------------------------"
                    + "\n// CodeHimBelonga kwb: " + (DateTime.Now.ToString())
                    + "\n//----------------------------------------------"  ;           
            }
            return true;
        }




Title: Re: How to create and load add-ins in Visual Studio .NET
Post by: Kerry on November 17, 2007, 04:31:19 AM
Cont ...

Any problems .. just yell.