I have three forms in my Project.
I have placed ImageEnView in Form1 and Form2.
I am opening Form2 from Form1 using MyForm2.ShowModal.
Here I want to give users facility to users to correct image loaded in Form2's ImageEnView from Form3.
In Form3 I have placed a few Trackbars and user can use these Trackbars to adjust Brightness, Contrast, Saturation, etc.
For this to work I would need to be able to access ImageEnView control placed in Form2.
I am trying to following code:
Form2.ImageEnView2.LayersCurrent := 1;
Form2.ImageEnView2.Proc.IntensityRGBall(tbRed.Position, tbBlue.Position, tbGreen.Position);
But this code is giving error: Access Violation.
What mistake am I making here?