PC Review


Reply
Thread Tools Rate Thread

How to create a custom control ?

 
 
Mike Oliszewski
Guest
Posts: n/a
 
      8th Aug 2003
I want to take the ListView and enhance it and then make it available as a
drop in GUI Control for Visual Studio with all the easy configuration of
properties that are normally available. Here is my test control which works
as expected if I manually add it to a form. How do I get it in the ToolBox
such that I can drop it onto a form ?

namespace Test
{
public class ExListView : System.Windows.Forms.ListView
{
public ExListView()
{
this.BackColor = Color.Red;
}
}
}


 
Reply With Quote
 
 
 
 
Dmitriy Lapshin [C# / .NET MVP]
Guest
Posts: n/a
 
      8th Aug 2003
Hi Mike,

Choose a tab of the toolbox you want to place your control in, then
right-click on this tab and choose "Customize...". Then switch to the ".NET
Components" tab in the dialog appeared, click "Browse..." and specify the
path to the assembly containing your customized control.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment
http://x-unity.miik.com.ua
Deliver reliable .NET software

"Mike Oliszewski" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> I want to take the ListView and enhance it and then make it available as a
> drop in GUI Control for Visual Studio with all the easy configuration of
> properties that are normally available. Here is my test control which

works
> as expected if I manually add it to a form. How do I get it in the

ToolBox
> such that I can drop it onto a form ?
>
> namespace Test
> {
> public class ExListView : System.Windows.Forms.ListView
> {
> public ExListView()
> {
> this.BackColor = Color.Red;
> }
> }
> }
>
>


 
Reply With Quote
 
Mike Oliszewski
Guest
Posts: n/a
 
      8th Aug 2003
Thank you!
"Dmitriy Lapshin [C# / .NET MVP]" <x-(E-Mail Removed)> wrote
in message news:%(E-Mail Removed)...
> Hi Mike,
>
> Choose a tab of the toolbox you want to place your control in, then
> right-click on this tab and choose "Customize...". Then switch to the

".NET
> Components" tab in the dialog appeared, click "Browse..." and specify the
> path to the assembly containing your customized control.
>
> --
> Dmitriy Lapshin [C# / .NET MVP]
> X-Unity Unit Testing and Integration Environment
> http://x-unity.miik.com.ua
> Deliver reliable .NET software
>
> "Mike Oliszewski" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
> > I want to take the ListView and enhance it and then make it available as

a
> > drop in GUI Control for Visual Studio with all the easy configuration of
> > properties that are normally available. Here is my test control which

> works
> > as expected if I manually add it to a form. How do I get it in the

> ToolBox
> > such that I can drop it onto a form ?
> >
> > namespace Test
> > {
> > public class ExListView : System.Windows.Forms.ListView
> > {
> > public ExListView()
> > {
> > this.BackColor = Color.Red;
> > }
> > }
> > }
> >
> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WPF: Cannot Create Custom Control in Project Wonko the Sane Microsoft C# .NET 2 26th Aug 2008 04:12 PM
How to Create a new Custom Web Control Elmo Watson Microsoft ASP .NET 2 2nd Oct 2006 06:48 PM
want to create custom control using graphics rushikesh.joshi@gmail.com Microsoft ASP .NET 2 29th Mar 2006 10:01 AM
Create Custom Control Pablo Salazar Microsoft C# .NET 1 26th Jan 2004 09:07 PM
Create Custom Control thru Code? Greg Bloom Microsoft Excel Programming 1 13th Oct 2003 09:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 AM.