UI Interest Group Blog

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Menu bar shode be hidden in exe

MDPatil
Member

I make .exe, using Properties I hidden menu bar.

Menu bar is only hidden when exe is running.

But when we stop the exe then again Menu bar is come.

Problem: I never want to show menu bar.....when exe is not run means ideal mode.

I trying by run timemenu bar and file-> property option.

still propelm is remain.

plz help me.

Comments
GerdW
Knight of NI

1) An executable should always run at startup.

2) An executable should always close it's frontpanel on stop/exit.

The problem you describe probably comes from not obeying those 2 points...

Just for clarification: If you start any executable (like WinWord or FireFox) it will run automatically. If you quit those applications they close their window. Why should a LabVIEW executable behave different?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
MDPatil
Member

Dear GerdW

Thanx for ur replay.

  Your statements are right. but in my codeing exe is not close when it's frontpanel Stop/exit.

  your Question :Why should a LabVIEW executable behave different?

But if we ceate exe in .net then .Net exe never shows "code Menu bar" when. why Labview exe shows? Can i slove it?

GerdW
Knight of NI

Hi Dynamic,

what do you mean by "is not close when it's frontpanel stop/exit"?

Why do LabVIEW executable show a menu bar?

Because you have to change some settings in your VI. You're the programmer, you're responsible for all VI settings...

Don't you think such a discussion is more appropriate to be held in the LabVIEW forum?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
OptiJohn
Member

Hey Dynamic,

You need to remove the menu bar in your VI properties before compiling. Select File > VI Properties > Window Appearance. Click custom and you'll find some options for turning off the menu bar.

In order to get the front panel to close when you exit your software, you need to make a call to "Quit LabVIEW". Check out the snippet below.

Exit.png