Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I am back with another question about GDI+:
I have dont my bit of research on OpenGL and found out about selection methods.

Now trying to create some graphics in VB.NET through GDI+, I would like to know how to select rectangles, circles etc...

Thanks in Advance,

Videep
Posted

1 solution

Okay, I got the solution:

Declare a rectangle

Dim r as new rectangle(10,10,200,200)


in the mouse_click event enter this:


VB
If(r.contains(e.location))Then
msgBox("You clicked inside a rectangle :D")
EndIf
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900