Tehn you don't need MDI as it stands for MULTIPLE Document Interface. A single editor that let's you edit mulitple documents of the same type. That was it's intended design and you would be trying to make it do something it's NOT designed to do.
You don't need MDI for this and from the sounds of it, you don't even need a Windows Forms app.
I have to draw a 3D terain (polygon) using openGL and Tao Framework in C#. The problem is, i have never done such things before and i dont know how to start. I have my KML file and i wonder, how to read data or use coordinates, to draw a 3D terain of the path i've walked (or drove with a car).
Can anyoone give me any advice or help how to start making the 3D object of it?
The point of the program is, to create a 3D polygon which can rotate around, so i could see in 3D where i walked, if u can understand what i mean with that.
private System.Windows.Forms.Timer TrzTimer = new System.Windows.Forms.Timer();
this.TrzTimer.Tick += new System.EventHandler(this.TrzTimer_Tick);
TrzTimer.Interval = 1000;
TrzTimer.Enabled = true;
privatevoid TrzTimer_Tick(object sender, EventArgs e)
// do something when time elapses
//An object reference is required for the non-static field, method, or property
this is the error message that i get for calling TrzInitialize() during building this
DLL program. Consider that TrzInitialize() must be non static because of timer routine definition and TrzStart() must be static to be known for main program. thanks
You cannot call TrzInitialize from static method.
Its common sense. Since Invoke.TrzStart is static and you have 10 instances if Invoke class which of them you want to use to call TrzInitialize?
You have to explicilty set that instance like