06-15-2015 08:13 AM - edited 06-15-2015 08:15 AM
Hello,
usually I develop my code modules by LabVIEW. Therefore I havn't any experience with .NET.
For a new project I want to call the Windows Message Box via .NET (Screenshot 1 in attachment). But I don't know how I realize the right assignment of owners windows handle. Directly assignment of TestStand properties ThisContext.Engine.AppMainHwnd or &ThisContext.Engine.AppMainHwnd results a run time error (Screenshot 2 in attachment).
Does anybody know what the correctly property of calling application (=TestStand) is?
Thank you in advance.
Kind regards
Christian
06-16-2015 07:22 AM
Hi,
I tried the same but with a minor change.
In the .net invocation i selected Show(System.String).
The parameters for this simple function is just a string (in) - which will be displayed.
Alternatively Show(System.String, System.String) function has both caption and text to be displayed.
Just wondering why are you not using the built in step type for message box.
Hope this helps.
Ravi