Home All Groups Group Topic Archive Search About

Add image to button at Runtime

Author
24 Apr 2006 5:44 PM
vighnesh
Hai All

Can Anyone Please suggest me how to add an image to a button at runtime
using VB/C#.NET . That image has to blick so it has the user attention.

Thanks in advance.

Regards
Vighneswar

Author
24 Apr 2006 6:21 PM
Ignacio Machin ( .NET/ C# MVP )
Hi,

You assign using Button.Image  (There is also a Button.BackgroundImage) .
all you have to do is create a Bitmap object and assign it.

Regarding the blinking, I'm not very sure if the image is a GIF with two
states if it does change (don't think so)
so what you can do is create your own control that does it.


--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation



Show quoteHide quote
"vighnesh" <vighn***@nannacomputers.com> wrote in message
news:%23ZKoAb8ZGHA.3304@TK2MSFTNGP04.phx.gbl...
> Hai All
>
> Can Anyone Please suggest me how to add an image to a button at runtime
> using VB/C#.NET . That image has to blick so it has the user attention.
>
> Thanks in advance.
>
> Regards
> Vighneswar
>