09-09-2011 03:56 AM
Hi there,
I am using LabVIEW 2010SP1. I noticed that the taskbar button name of an executable is always its file name (i.e. if I have defined "abc.exe" as target filename in the Information category of the application properties, the name of the corresponding taskbar button is "abc". Is there a way to modify this taskbar button name (programmatically, by setting an application property or by adding an entry in "abc.ini")?
Best regards
cpschnuffel
Solved! Go to Solution.
09-09-2011 03:59 AM
Im not sure what exactly you refer to by Taskbar button,
Could you attach your code or an image?
Regards
09-09-2011 04:16 AM
Hi Prashanth,
If I build an executable from my LabVIEW code and start this executable, it has a button in the taskbar (like every non-hidden executable). The name of this taskbar button is always the name of the executable (without ".exe"). My goal is to change the name of this taskbar button (i.e. my executable is "abc.exe", but the name of the corresponding taskbar button should be "abc 1.00" or whatever...).
See the attached image: The executable "EAMi.exe" (its panel is running in foreground) has the taskbar button named "EAMi".
09-09-2011 04:23 AM
09-09-2011 04:27 AM
Sorry Andrey, but this affects only the title of my window and NOT the name of my executable's taskbar button; please have a look at my window title in the attached image of my last post: It is already different to the name of my VI...
cpschnuffel
09-09-2011 04:44 AM
A workaround would be to change the name of your exe to whatever you want, and control the Title as shown above.
Is there a reason you dont want to change your exe name?
09-09-2011 04:57 AM
@Pachi wrote:
A workaround would be to change the name of your exe to whatever you want, and control the Title as shown above.
Is there a reason you dont want to change your exe name?
No any "workarounds" are necessary. The Title on TaskBar should be the same as title of the Top-Level VI.
Code:
It might be differ only if VI called dynamically.
Andrey.
09-09-2011 05:05 AM - edited 09-09-2011 05:06 AM
Hello all,
to show the problem, I made a VI and an EXE from this (LV2010SP1)
09-09-2011 05:15 AM
Hi Prashanth,
yes, there's a reason for me: "abc 1.00.exe" doesn't look very professional... Besides it would be a great feature to change the name of the taskbar button programmatically, e.g. to show additional informations like a star (*) if the currently used file is changed but not saved, or a progress value if I do a long measurement scan etc.
Best regards,
cpschnuffel
09-09-2011 08:50 AM
I believe the information that you are looking to change is embedded within the application's VERSIONINFO resource. I don't know how to programmatically change this, but I know there are resource hackers that can do this. I do not know if they use a Windows API function to do this, or whether they simply change the file at a hex level.