From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run an exe as a window inside a VI

Do you think this is possible to add to a subpanel? For some reason, I cannot get this to work. I have a front panel in which I select to display the front panel of several VIs. Works if I run the front panel on its own, but when I try it as a subpanel.

 

Thanks!

0 Kudos
Message 21 of 39
(3,095 Views)

Do you have error handing going on?  If the insert fails it will generate an error and tell you why.  In my cases 90% of the time I just have the front panel open already.  To make this more robust you can capture this and close the front panel then attempt another insert.  You may want to look up some subpanel examples on the forums, or make a new thread if you are still having issues.

0 Kudos
Message 22 of 39
(3,072 Views)

Hi all,

 

I've tried the example with my .NET application (x86 with Winforms). Displaying is working but GUI event handling is not working.

When I click on my .NET application buttons, nothing happens.

Also, MenuBar is always hidden. Not possible to display it.

 

Do you have an idea about this issue?

 

Thanks

 

0 Kudos
Message 23 of 39
(3,033 Views)

I don't have much experience with .NET applications.  One thing about the UI interactions that might be preventing it from working might be the Z order of windows.  If you have a window on top of another I'm not sure how the interactions will work.  I'm guessing the one with focus will be brought forward just like normal Windows UIs but can't be sure.  No idea about the MenuBar, as I mentioned it is possible the window doesn't abide by the standard MenuBar API and recreates a menu that looks like a native one so other functions that try to show and hide it don't work right.  Basically I'm saying I don't know and can't really help.

0 Kudos
Message 24 of 39
(3,020 Views)

Thanks for your answer. But it's not a good news. Maybe, windows message go to the final destination (my .NET usercontrol) and they may be catched  by LV before.

I'm quite blocked because I really need this feature.

How can we investigate more?

 

 

0 Kudos
Message 25 of 39
(3,012 Views)

@maxmont

Something that may help you get some help here on the forums is to post your code, so that people can see it and maybe look into what the issues are that you're running into. 

C. Weeks
Product Support Engineer
NI
0 Kudos
Message 26 of 39
(3,006 Views)