Adding icons as links

  • Thread starter Thread starter Diego F.
  • Start date Start date
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.
 
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
 
Back
Top