NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Call "MessageBox.Show Method" via DotNet

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

Christian

Test Engineering
digades GmbH
www.digades.com
0 Kudos
Message 1 of 2
(4,002 Views)

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

Message 2 of 2
(3,970 Views)