i have an image,when ever i right click with mouse on that image should display the button

Posted by Sunkara Prathusha under ASP.NET on 2/9/2012 | Points: 10 | Views : 488 | Status : [Member] | Replies : 1
i have an image,when ever i right click with mouse on that image should display the button

prathusha.s


Responses

Posted by: Naraayanan on: 2/14/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Drag button from Tool box and drop in the Picture Box and set visible is false in the button Property
   private void pictureBox1_MouseClick(object sender, MouseEventArgs e)

{
if (e.Button == MouseButtons.Right)
{
button5.Visible = true;
}
}


Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Sunkara Prathusha, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response