Hellow
i have c# project that deals with googleearth i could insert the googleearth in the form ,i could rise the camera, rotate around point
and change angle of the camera, but i could not move the forward or backward or to left or to right USING GOOGLE ICONS whitch
located in the far right of the global [their are 3 icons one has pluse and minus and the upper two has 4 arrows, i wish if i could use them in my methods just like the 2 method in
code below]
i use window 7 + VS 2010 using this in code i got VersionMajor and VersionMinor = 7 and 1
int x = googleEarth.VersionMajor;
MessageBox.Show(x.ToString(), googleEarth.VersionMinor.ToString());
help
CameraInfoGE cam = new CameraInfoGE();
public ApplicationGEClass googleEarth;
private IntPtr Gwnd = (IntPtr)0;
.
.
.
private void Form1_Load(object sender, EventArgs e)
{
.
.
.
googleEarth = new ApplicationGEClass();
cam.Tilt = 10;
cam.Azimuth = 0;
Gwnd = (IntPtr)googleEarth.GetMainHwnd();
ClassGoogle.ShowWindow(Gwnd, ClassGoogle.SW_MINIMIZE);
.
.
.
}
private void CameraTilted_Click(object sender, EventArgs e)
{
str1 = textBox1.Text;
cam.Tilt = double.Parse(str1);
googleEarth.SetCamera(cam, 0.25f);
}
private void AzimuthChanged(object sender, EventArgs e)
{
cam.Azimuth = (double)numericUpDown1.Value;
googleEarth.SetCamera(cam, 0.25f);
}