The two forms need to run at the same time. below showed the code from project1
static void Main()
{
eyeXHost.Start();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
var f = new cursor();
f.Show();
Application.Run(new eye());
eyeXHost.Dispose();
}
Then I need to run cursor
and eye
form at the same time at project 2.
I did try out this method below in project2.
static void EyeTrackerMode()
{
eye_tracker = new eyetracker();
Application.Run(new eye());
Application.Run(new cursor());
}
The debug only show one form which is the "eye". Please lend me a hand on this. Thank you.