Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

develop such winform using c#

Tags:

c#

image

winforms

Figure 1,i have one or a few pictures,and some mp3 files. i want to develop a winform and load picture into winform,then, when mouse over certain areas of the picture,the area change,and play mp3 file when the mouse click.

question:How do I know the mouse over the designated area?and then change the color of the area? how to know which areas of mouse clicks? and play mp3 files

These areas may be round, oval, rectangular... perhaps this is hotspot image question.

anyone help me? thanks!

Figure

like image 362
Net205 Avatar asked Jan 18 '26 00:01

Net205


1 Answers

Use OvalShape and the MouseHover event. Then simply call code to modify the opacity/color/whatever of the oval, and play an mp3 which is a separate problem.

like image 104
Jean-Bernard Pellerin Avatar answered Jan 19 '26 16:01

Jean-Bernard Pellerin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!