You could inherit from picturebox and add your own methods or inherit from
control and do everything in OnPaint.
If you are using C# you can also get design time support. There are plenty
examples in the SDF source and also check out these articles:
http://msdn.microsoft.com/library/de...plications.asp
http://www.intelliprog.com/articles/index.html
http://www.peterfoot.net/PermaLink.a...8-0829f2b63b21
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
"Eric W" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I want to build a custom control that will display a signal indicator.
>Basically I have 4 images and depending on the current state, I will
>display one of these images on the screen. I want to build it as a custom
>control so i can add it to multiple pages of the form.
>
> The control should also allow me to set the state of the control..
>
> Ie. when i set state to 1, image 1 will be displayed and so on.
>
> Please could you advise me on how to do this ?
>
> Many thanks.
>