![]() |
|
[.NET] Form Click Radius - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Form Click Radius (/showthread.php?tid=4632176) |
Form Click Radius - Shoot - Jan 11, 2015 hey guys, i know i have been for alot of help its because im trying to make a game. how could i make a click radius on a form example if i click between X & Y, width, & height i could make it do something like popup a messagebox thanks in advance * - Odus - Jan 11, 2015 Today is the day you learn something all by yourself. Very easy to do I might add. I have exactly what you need here: ![]() Here is the code: ![]() Oh what's that you say? It's blurred? Oh dear. Think about it, this isn't a difficult task. Rack every corner of your brain and if you still can't figure it out, I'll give you a clue. Since it's obvious you're not going to stop with the threads, maybe I can give you reason to stop. P.S I guess xNet has been laid to rest? * - webdev77 - Jan 11, 2015 Just create a control that appears to be invisible because it's 100% transparent. * - Shoot - Jan 11, 2015 (Jan 11, 2015 07:21 PM)Odus Wrote: Today is the day you learn something all by yourself. Very easy to do I might add. I have exactly what you need here: i dont know :( and no, im just taking a break from it, a game has been something i've been trying to do but cant get it right but this would help edit: oh lol edit 2: i need it to popup a message box when a certain area is clicked though * - hellomen - Jan 11, 2015 Create a new transparant rectangle, add a click event on it. On click: show the messagebox Don't forget the randomized area.. I made the same exact game that does this a while ago, a long while ago.... * - KingDeath360 - Jan 11, 2015 You didn't specify the shape, do you want one for a rectangle or circle? For the circle use Eclipse For a triangle i think you can use, the graphics path + contains [img]http://anony.ws/i/2015/01/12/Untitled283db.png[/img] [img]http://en.morzel.net/pics/PostImg/default_coord.jpg[/img] * - hellomen - Jan 11, 2015 (Jan 11, 2015 09:35 PM)KingDeath360 Wrote: You didn't specify the shape, do you want one for a rectangle or circle? Please provide logic instead of source codes. Or share references but please don't get copy paste kids on here. Let them do the thinking first and then help them out if necessary. Providing logics instead of source code gets the kiddies out and get the actual people who want to learn it in. Use the stackoverflow mindset. Ask a question, explain it as good as possible. Show what you've tried. Receive help. Nothing tried === no help Nothing provided except logic what the user tried === logic posts to solve the problem Provided the tried sources === edits in that source to get it fixed then also have a proper explaination. |