Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Form Click Radius

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
Today is the day you learn something all by yourself. Very easy to do I might add. I have exactly what you need here:

[Image: ECexwXT.gif]

Here is the code:
[Image: tZ1quSZ.png]

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?
Just create a control that appears to be invisible because it's 100% transparent.
(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:

[Image: ECexwXT.gif]

Here is the code:
[Image: tZ1quSZ.png]

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?

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
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....
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]
(Jan 11, 2015 09:35 PM)KingDeath360 Wrote:  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]

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.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by cristlolFeb 22, 2022 07:46 AM 9 416 Feb 22, 2022 07:46 AM
Last Post: Endorphins
[C#] by Ðr1psNov 9, 2015 03:56 PM 19 416 Nov 9, 2015 03:56 PM
Last Post: Ðr1ps
[.NET] by Lexxi.Oct 1, 2015 08:56 AM 7 182 Oct 1, 2015 08:56 AM
Last Post: Lexxi.