<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to install custom controls</title>
	<atom:link href="http://softblog.violet-tape.net/2010/01/18/how-to-install-custom-controls/feed/" rel="self" type="application/rss+xml" />
	<link>http://softblog.violet-tape.net/2010/01/18/how-to-install-custom-controls/</link>
	<description>Some thoughts about .Net programming</description>
	<lastBuildDate>Wed, 24 Mar 2010 10:40:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Koissakh Kadderah</title>
		<link>http://softblog.violet-tape.net/2010/01/18/how-to-install-custom-controls/comment-page-1/#comment-40</link>
		<dc:creator>Koissakh Kadderah</dc:creator>
		<pubDate>Wed, 24 Mar 2010 10:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://softblog.violet-tape.net/?p=68#comment-40</guid>
		<description>I suppose that it should work tab.ToolBoxItems.Add(“ButtonEx”,&lt;del datetime=&quot;2010-03-24T09:58:31+00:00&quot;&gt; control.Control&lt;/del&gt; control.AssemblyPath , vsToolBoxItemFormat.vsToolBoxItemFormatDotNETComponent); 

Anyway you can find here in answers link to the SVN repository. Feel free to download it and rewrite it for yourself.

When I tried to install a few controls from library I failed actually (</description>
		<content:encoded><![CDATA[<p>I suppose that it should work tab.ToolBoxItems.Add(“ButtonEx”,<del datetime="2010-03-24T09:58:31+00:00"> control.Control</del> control.AssemblyPath , vsToolBoxItemFormat.vsToolBoxItemFormatDotNETComponent); </p>
<p>Anyway you can find here in answers link to the SVN repository. Feel free to download it and rewrite it for yourself.</p>
<p>When I tried to install a few controls from library I failed actually (</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koissakh Kadderah</title>
		<link>http://softblog.violet-tape.net/2010/01/18/how-to-install-custom-controls/comment-page-1/#comment-39</link>
		<dc:creator>Koissakh Kadderah</dc:creator>
		<pubDate>Wed, 24 Mar 2010 10:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://softblog.violet-tape.net/?p=68#comment-39</guid>
		<description>Hello Tharushani! 
Thank you for comment and excuse me for the long delay with answer. 

If your are familiar with SVN you can download full project from http://subversion.assembla.com/svn/wbr_VSToolboxInstall 
Within this project the main interest for is in the &quot;InstallVSComponent&quot; class (WBR.VioletTape.InstallVSToolbox.InstallationLogic.Services)
 
To uninstall components - just find and delete tab from VS.</description>
		<content:encoded><![CDATA[<p>Hello Tharushani!<br />
Thank you for comment and excuse me for the long delay with answer. </p>
<p>If your are familiar with SVN you can download full project from <a href="http://subversion.assembla.com/svn/wbr_VSToolboxInstall" rel="nofollow">http://subversion.assembla.com/svn/wbr_VSToolboxInstall</a><br />
Within this project the main interest for is in the &#8220;InstallVSComponent&#8221; class (WBR.VioletTape.InstallVSToolbox.InstallationLogic.Services)</p>
<p>To uninstall components &#8211; just find and delete tab from VS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I. Dimitrov</title>
		<link>http://softblog.violet-tape.net/2010/01/18/how-to-install-custom-controls/comment-page-1/#comment-36</link>
		<dc:creator>I. Dimitrov</dc:creator>
		<pubDate>Fri, 05 Mar 2010 13:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://softblog.violet-tape.net/?p=68#comment-36</guid>
		<description>If it is applicable, could you please post a working real-world example which demonstrates how to use the source code from the article. This would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>If it is applicable, could you please post a working real-world example which demonstrates how to use the source code from the article. This would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I. Dimitrov</title>
		<link>http://softblog.violet-tape.net/2010/01/18/how-to-install-custom-controls/comment-page-1/#comment-35</link>
		<dc:creator>I. Dimitrov</dc:creator>
		<pubDate>Fri, 05 Mar 2010 12:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://softblog.violet-tape.net/?p=68#comment-35</guid>
		<description>Hi, 

Thank you for sharing this code. However, I was not able to install a control by using it. I am using VS2008 Team System and I have a question. When I try to install a control called ButtonEx, it gives me &quot;Value doesn&#039;t fall withing the expected range&quot; exception. The ButtonEx control is created in a custom control library called WindowsFormsConrolLibrary1.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace WindowsFormsControlLibrary1
{
    public class ButtonEx : Control
    {
        public ButtonEx()
        {
        }

        protected override void OnPaint(PaintEventArgs pevent)
        {

            base.OnPaint(pevent);
            pevent.Graphics.FillRectangle(Brushes.Red, new Rectangle(0, 0, 5, 5));
        
        }
    }
}

I have created a new Winforms application and do the following when I run it:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using InstallCustomControl.Services;
using System.Reflection;

namespace WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            Assembly assembly = Assembly.Load(&quot;WindowsFormsControlLibrary1&quot;); 
            InstallToolBar toolbar = new InstallToolBar();
            toolbar.Install(assembly.Location);
        }
    }
}

It throws an exception in the Add method:
     foreach (var control in controls) {
                var tab = GetToolBoxTab(tabs, control.TabName);
                if (tab != null &amp;&amp; !control.IsToolBoxTab) {
                    tab.Activate();

                    tab.ToolBoxItems.Add(&quot;ButtonEx&quot;, control.Control, vsToolBoxItemFormat.vsToolBoxItemFormatDotNETComponent);
                }
            }


Please Advice.
Thanks</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Thank you for sharing this code. However, I was not able to install a control by using it. I am using VS2008 Team System and I have a question. When I try to install a control called ButtonEx, it gives me &#8220;Value doesn&#8217;t fall withing the expected range&#8221; exception. The ButtonEx control is created in a custom control library called WindowsFormsConrolLibrary1.</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using System.Drawing;</p>
<p>namespace WindowsFormsControlLibrary1<br />
{<br />
    public class ButtonEx : Control<br />
    {<br />
        public ButtonEx()<br />
        {<br />
        }</p>
<p>        protected override void OnPaint(PaintEventArgs pevent)<br />
        {</p>
<p>            base.OnPaint(pevent);<br />
            pevent.Graphics.FillRectangle(Brushes.Red, new Rectangle(0, 0, 5, 5));</p>
<p>        }<br />
    }<br />
}</p>
<p>I have created a new Winforms application and do the following when I run it:</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using InstallCustomControl.Services;<br />
using System.Reflection;</p>
<p>namespace WindowsFormsApplication2<br />
{<br />
    public partial class Form1 : Form<br />
    {<br />
        public Form1()<br />
        {<br />
            InitializeComponent();</p>
<p>            Assembly assembly = Assembly.Load(&#8220;WindowsFormsControlLibrary1&#8243;);<br />
            InstallToolBar toolbar = new InstallToolBar();<br />
            toolbar.Install(assembly.Location);<br />
        }<br />
    }<br />
}</p>
<p>It throws an exception in the Add method:<br />
     foreach (var control in controls) {<br />
                var tab = GetToolBoxTab(tabs, control.TabName);<br />
                if (tab != null &amp;&amp; !control.IsToolBoxTab) {<br />
                    tab.Activate();</p>
<p>                    tab.ToolBoxItems.Add(&#8220;ButtonEx&#8221;, control.Control, vsToolBoxItemFormat.vsToolBoxItemFormatDotNETComponent);<br />
                }<br />
            }</p>
<p>Please Advice.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tharushani</title>
		<link>http://softblog.violet-tape.net/2010/01/18/how-to-install-custom-controls/comment-page-1/#comment-33</link>
		<dc:creator>Tharushani</dc:creator>
		<pubDate>Thu, 18 Feb 2010 11:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://softblog.violet-tape.net/?p=68#comment-33</guid>
		<description>Thank you for writing a good article.
I want to know how I can combine these classes in the project...? 
And the code to uninstall the controls?
Thank you.</description>
		<content:encoded><![CDATA[<p>Thank you for writing a good article.<br />
I want to know how I can combine these classes in the project&#8230;?<br />
And the code to uninstall the controls?<br />
Thank you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
