The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a main form which has several child forms. One of child forms is a form with help (helpForm).
I am trying to add a code which would allow any child to open a form with helpForm when user presses F1.
The problem is how to access a function in mainform from child without instancing, as when I instance a mainform in child form, then I ahve a problem with determining is helpForm open or not.
Also is there a way of accessing a variable declared in main form from child forms without instancing main form?
IS this an MDI application or and SDI?
If mdi then you can access the parent with midparent property. and just cast it to the main form.
If SDI, then you can use reflection ot call the main form using methodinvoke.
> I have a main form which has several child forms. One of child forms is a form with help (helpForm).
> I am trying to add a code which would allow any child to open a form with helpForm when user presses F1.
> The problem is how to access a function in mainform from child without instancing, as when I instance a mainform in child form, then I ahve a problem with determining is helpForm open or not.
> Also is there a way of accessing a variable declared in main form from child forms without instancing main form?
>