Add image to button at Runtime

V

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
 
I

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top