How do i draw a polygon using visual basic? I need the code to let users draw a polygon?
-
i need the code for drawing a polygon once someone clicks on the draw polygon button, also the code for calculating area of this polygon as well as calculating if a point is located in a polygon, the x, y co-ordinates of vertices as well as calculating the co-ordinates of a line that intersects with this polygon using visual basic
-
Answer:
write code in the form_mousedown event. This will give you the x and y coordinates where they clicked on the form. Then, use the Form.Line method to draw a line, between the two points where they last clicked. Doing this, the user can draw the lines of the polygon one-by-one.
sally g at Yahoo! Answers Visit the source
Related Q & A:
- How can I find a Yahoo user ID if I only have the name?Best solution by Yahoo! Answers
- How do I put a custom PSP firmware when I have 3.71 firmware?Best solution by krizka.net
- How can I edit a picture using photoshop?Best solution by Yahoo! Answers
- How can I record a video using my webcam?Best solution by Answerbag.com
- How do I send a message using yahoo mail?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.