How is polygon described?

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

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

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.