mooman_fl
Well-known member
Having a little trouble with some code I am working on. I have never worked with GDI or GDI+ before so this is a little new to me and I am not sure what I am missing. I am sure it is probably something basic.
Found a tutorial at this site . That explains the GDI+ basics. What I am trying to do is make a test program that will make 3 lines on a panel control.... when the mouse is over a line it will change lable1.text to true. Later I would add code that would additionally tell me what line the mouse was over as well.
I can get the lines drawn... I think I have the regions set correctly. The tutorial mentions that you can do a hit test by using the Region.IsVisible method. I tried that passing the current mouse coordinates in the panel control to the method to compare but it doesnt seem to detect the hit when passed over a line.
Attached is my code... any help is appreciated.
Found a tutorial at this site . That explains the GDI+ basics. What I am trying to do is make a test program that will make 3 lines on a panel control.... when the mouse is over a line it will change lable1.text to true. Later I would add code that would additionally tell me what line the mouse was over as well.
I can get the lines drawn... I think I have the regions set correctly. The tutorial mentions that you can do a hit test by using the Region.IsVisible method. I tried that passing the current mouse coordinates in the panel control to the method to compare but it doesnt seem to detect the hit when passed over a line.
Attached is my code... any help is appreciated.