PC Review


Reply
Thread Tools Rate Thread

Custom Control

 
 
Eric W
Guest
Posts: n/a
 
      17th May 2005
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.


 
Reply With Quote
 
 
 
 
Daniel Moth
Guest
Posts: n/a
 
      17th May 2005
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.
>


 
Reply With Quote
 
Eric W
Guest
Posts: n/a
 
      17th May 2005
Thanks very much !!

Eric
"Daniel Moth" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>>

>



 
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
Re: Code for setting Forms to open with custom tool bar, menubar and control custom short Rick Brandt Microsoft Access 0 5th Feb 2006 01:06 PM
Capturing event from other custom control within another custom control Jonah Olsson Microsoft ASP .NET 1 5th Apr 2005 02:39 PM
zooming a custom control - layout custom controls in grid john menke Microsoft C# .NET 1 31st May 2004 06:21 PM
Custom Popup menu in custom control and powerpoint Rajesh Microsoft Powerpoint 1 1st Mar 2004 01:55 PM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com Microsoft ASP .NET 0 1st Jul 2003 10:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:56 AM.