button control on a cerain place in an image

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how do i place a button control on a certain part(using coordinates) in an
image... in short, i want the functions of a button in a certain part of a
image that in going to be placed in a form in C#.. Thanks in advance!
 
how do i place a button control on a certain part(using coordinates) in an
image... in short, i want the functions of a button in a certain part of a
image that in going to be placed in a form in C#.. Thanks in advance!

Do you want the "click" event. You could achieve that by using the
Click from the image (or MouseDown) and ask the coordinates of the
pointer at that moment

Leon
 
how do i place a button control on a certain part(using coordinates) in an
image... in short, i want the functions of a button in a certain part of a
image that in going to be placed in a form in C#.. Thanks in advance!

This is a wild guess (untried). Try placing a transparent panel on top of the
image and place the button on the panel.

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
 
Just override the click of a PictureBox and compare the point against a list
of stores rectangles. Each rectangle can be associated in an hastable with a
command or some other data...

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Back
Top