Show([Parent: IWin32Window = Null]);
Parent is a parent window, relative to which the .NET form is displayed.
The Show method displays the window of the current .NET form.
Executing this example requires a form with the Button1 button. The repository contains a .NET assembly with the TestAssm identifier. The .NET form named TestForm is created in this assembly. The namespace of assembly corresponds to its identifier.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MB: IMetabase;
Run: IForeNETRuntime;
Asm: IForeNETRuntimeAssembly;
RuntimeForm: IForeNETRuntimeForm;
Begin
MB := MetabaseClass.Active;
Run := ForeNETAssemblyClass.Runtime;
Asm := Run.Assembly(MB.ItemById("TestAssm").Bind As IForeNETAssembly);
RuntimeForm := Asm.Form("TestAssm.TestForm");
RuntimeForm.Show(Self As IWin32Window);
End Sub Button1OnClick;
After executing this example, pressing the button from .NET assembly opens the .NET form. The current form is set as a parent for .NET form.
See also: