Adding icons as links

D

Diego F.

Hello, I'd like to have a main form with some options to the rest of the
application. Instead of a text link, I'd like to have some icons and when I
press them open the appropriated form. How can I do that?

Regards,

Diego F.
 
S

SSP

Hi Diego,

Here's part of my code:
...............................................................
imageButtonVet = new ImageButton();
imageButtonVet.Image = new
Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("Forms.Imag
es.vet.gif"));
imageButtonVet.Location = new Point(142, 182);
imageButtonVet.Size = new Size(46, 45);
//Hook up into click event
imageButtonVet.Click+=new EventHandler(pushButton_Click);
this.Controls.Add(imageButtonVet);
...............................................................

HTH
SSP
 

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