![]() GMapControl1.MapProvider = GMapProviders. Private void button5_Click(object sender, EventArgs e) Then Click the lightening bolt button and that will list your events and in there is a OnMarkerClick Event you can double click it and it will build a event. You can right click your GmapControl and then select properties. Private void button4_Click(object sender, EventArgs e) The gMapControl has a event called OnMarkerClick that you can subscribe to to listen for click events on your makers. GMapControl1.MapProvider = GMapProviders.GoogleChinaSatelliteMap Private void button3_Click(object sender, EventArgs e) Private void button2_Click(object sender, EventArgs e) Marker.ToolTipText = string.Format("Gimnazija: \n Latituda: ", lat, lng) marker.ToolTipMode = MarkerTooltipMode.Always Marker = new GMarkerGoogle(new PointLatLng(LatInicial, LngInicial),een) MarkerOverlay = new GMapOverlay("markers") GMapControl1.Position = new PointLatLng(LatInicial, LngInicial) GMapControl1.MapProvider = GMapProviders.GoogleMap GMapControl1.DragButton = MouseButtons.Left Private void Form1_Load(object sender, EventArgs e)ĭt.Columns.Add(new DataColumn("Opis", typeof(string))) ĭt.Columns.Add(new DataColumn("Lat", typeof(double))) ĭt.Columns.Add(new DataColumn("Long", typeof(double))) ĭt.Rows.Add("Gimnazija", LatInicial, LngInicial) ĭt.Rows.Add("Tehnicka skola", LatTehnicka, LngTehnicka) ĭt.Rows.Add("Medicinska skola", LatMedicinska, LngMedicinska) ĭ = false Now what I'm trying to do is to click on a marker opens a new form, click on the second marker to open another form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |