Topics: Windows Forms
Apr 15, 2012 at 6:45 PM

Hi Radioman;

How could i set the  current position by entering the latitude and longitude instead textGeo adress?


Apr 15, 2012 at 6:54 PM

map.Position = new ...

Apr 15, 2012 at 7:19 PM
Edited Apr 15, 2012 at 7:30 PM


Apr 15, 2012 at 7:31 PM

Why when I add other markers(image), I don't have myPosition displaying in the center of map?

Apr 15, 2012 at 7:42 PM


Apr 15, 2012 at 8:30 PM

I mean that,when i set position (map.Position = new ...) in main function, and i add green marker to this position,  I see the marker in the center of map.

But when i add other markers (image) in different position, the map try to display all markers(with reducing zoom), so the current position isn't in the center of map

is it normal?

Apr 15, 2012 at 8:56 PM

show me, i don't get it

Apr 16, 2012 at 8:14 AM

Sorry to be late,

this is image with marker in the center

and this with marker image

Apr 16, 2012 at 5:18 PM

so where is the problem? it's on the map, thats it

Apr 16, 2012 at 6:11 PM

Ok, thanks ;)

As you saw i use camera as marker and i want that this marker flashes when there is detection.

Any idea, how to make it?

Apr 18, 2012 at 3:17 PM


I created markerCamera class, and i added 3 cameras on map, how could make these markers invisible

i if the checkbox.unchecked 

this is the method to create cameras 

public void addCamera(double lat, double lgt, string cam)
            PointLatLng point = new PointLatLng(lat, lgt);
            z = new GMapMarkerCam(point);           
            z.ToolTipText = cam;
            z.ToolTipMode = MarkerTooltipMode.Always;
and i call this when i display on the map.
I wante to remove markers but it remove the last object created
Any idea how to remove or hide these markers?

Apr 18, 2012 at 3:40 PM

objects.IsVisible = false;

Apr 18, 2012 at 4:57 PM

Thanks ;)

Apr 19, 2012 at 11:26 AM


 How could I display more than one window of camera on map if i have an event or i click on?


Apr 19, 2012 at 1:20 PM

use Modeless Windows,

Apr 19, 2012 at 2:03 PM

Yes I use this before

Form frmAbout = new Form();
it show me the new form but when i want to click on map is disable
So I used just show instead showDialog, but the problem when i move the mouse, the new window is minimised.
What i want it that new form stay on map and i can also show another
Apr 19, 2012 at 2:07 PM
Edited Apr 19, 2012 at 2:07 PM

learn c#, From f = new Form(); f.Owner = this; f.Show();

Apr 19, 2012 at 2:50 PM

thank you ;)

Apr 30, 2012 at 12:40 PM

Hi Radiman

Could you please help me on this feature,

when I create the new Form f I trasfer with it one parameter (camera)

I have a list of camera instances (camera1, 2 ...5)

And I want there is a move it shows me one window for each camera

I tried do it with one camera

public void timer1_Tick(object source, EventArgs e)        
            if (camera1.MoveDetection == true)
                foreach (Form S in Application.OpenForms)
                    if (S.GetType() == typeof(Formes.CameraViewVS))

                Formes.CameraViewVS f1 = new Formes.CameraViewVS(camera1);
                f1.Owner = this;

But I don't know how to apply it for the all list of camera, how could I identify a window for each camera?
Thank you
Apr 30, 2012 at 12:50 PM

try assign some parameter to window

Apr 30, 2012 at 1:06 PM


Apr 30, 2012 at 1:51 PM

f2.CameraId = 5;

Apr 30, 2012 at 2:11 PM
Edited Apr 30, 2012 at 2:17 PM

Do you mean that i add a parameter CameraId

Formes.CameraViewVS f1 = new Formes.CameraViewVS(camera1, cameraId);
                f1.Owner = this;

And here I test 
foreach (Form S in Application.OpenForms)
                    if (S.GetType() == typeof(Formes.CameraViewVS)) && (F1.CameraId == CameraId)


Apr 30, 2012 at 2:27 PM

i don't know what exactly are you trying to do, good luck ;}

Apr 30, 2012 at 3:10 PM
Edited May 1, 2012 at 8:24 AM

ok, thanks