1

Hello,
I started to make some changes on the Kinovea software but I have a little problem, when I add a menu called "Test", if I click on the menu, I have to display a new window as follows:

     Form form = new Form ();
     Form.Show ();

it is very simple, the window appears but then when I move the mouse and I do any movement with the mouse, the window is minimized in the task bar of Windows,

is there anyone who has faced a problem. Thank you.

2

Hi,
I just tried and yes, you're right :-)

You need to set the .Owner property of the form to be the main Kinovea form for it to work properly.
If your menu handler is inside Kernel.cs, you can simply do this:

form.Owner = MainWindow;

If it's outside, in another module or elsewhere, you can call a similar function through this :

using Kinovea.Services;

Form form = new Form ();
DelegatesPool dp = DelegatesPool.Instance();
if (dp.MakeTopMost != null)
    dp.MakeTopMost(form);
form.Show();