Custom Control

  • Thread starter Thread starter Eric W
  • Start date Start date
E

Eric W

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.
 
Thanks very much !!

Eric
Daniel Moth said:
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/d...ngcustomcontrolforsmartdeviceapplications.asp

http://www.intelliprog.com/articles/index.html

http://www.peterfoot.net/PermaLink.aspx?guid=cc77da8b-4f86-409c-a8c8-0829f2b63b21

Cheers
Daniel
 
Back
Top