problem as the polygon

Topics: Windows Forms
Aug 5, 2013 at 6:56 PM
my problem is this I have the following code and shows me my polygon but I want the full TEXTBOX just some also show me if the polygon is filled TEXTBOX any mistake I make.

private void button3_Click(object sender, EventArgs e)

            GMap.NET.WindowsForms.GMapOverlay polyOverlay = new GMap.NET.WindowsForms.GMapOverlay("polygons");
            List<GMap.NET.PointLatLng> polygonPoints = new List<GMap.NET.PointLatLng>();

           double ALat = double.Parse(textBoxALat.Text);
           double ALng = double.Parse(textBoxALng.Text);
           double BLat = double.Parse(textBoxBLat.Text);
           double BLng = double.Parse(textBoxBLng.Text);
           double CLat = double.Parse(textBoxCLat.Text);
           double CLng = double.Parse(textBoxCLng.Text);
           double DLat = double.Parse(textBoxDLat.Text);
           double DLng = double.Parse(textBoxDLng.Text);
           double ELat = double.Parse(textBoxELat.Text);
           double ELng = double.Parse(textBoxELng.Text);

                polygonPoints.Add(new GMap.NET.PointLatLng(ALat, ALng));
                polygonPoints.Add(new GMap.NET.PointLatLng(BLat, BLng));
                polygonPoints.Add(new GMap.NET.PointLatLng(CLat, CLng));
                polygonPoints.Add(new GMap.NET.PointLatLng(DLat, DLng));
                polygonPoints.Add(new GMap.NET.PointLatLng(ELat, ELng));
                GMap.NET.WindowsForms.GMapPolygon polygon = new GMap.NET.WindowsForms.GMapPolygon(polygonPoints, "mypolygon");
                polygon.Stroke = new Pen(Color.YellowGreen, 2);

            gmap.Position = new GMap.NET.PointLatLng(ALat, ALng);