Saturday, January 8, 2011

Insert image on button

->  Set its Image property from the Property window



->   You can set its Image Programmatically



           button1.Image= Image.FromFile(@"full_image_path_here");







->  If you already have image in Resources then You can set its image from the Resource Programmatically by this code:





button1.Image = WindowsApplication1_csharp.Properties.Resources.Resource_name;

No comments:

Post a Comment