ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
07-03-2009 01:26 AM
Hi
How to set different icons for different windows which is seen in the top left corner? I know when building exe there is a option to edit icons or add icons and that icon is default for all the windows in the project. But i want different icons for different windows which is possible in VB.
Is there any way to set icon by calling any dlls.
Thanks & Regards
Samuel J
samuel@captronicsystyems.com
07-03-2009 02:13 AM
Hi Samuel,
i made some short test with functions from the user32.dll, but it's not possible to read the Icon of a LabVIEW vi or a LabVIEW executable, so i think it's also not possible to set it with external functions. The only way would be with provided functions from NI, but i don't know such a funcion.
Mike
07-03-2009 02:36 AM
Hi Mike
If you don't mind can you please please send me the code that you had tested.
Regards
Sam
07-03-2009 03:08 AM
Hi Sam,
no problem. See the attachment.
Mike
07-03-2009 03:35 AM
....I think that LV uses the default LV icon in the TLH corner of the window when running, but will use the custom icon (you design for the main VI) when you create a stand alone application. I seem to recall this was what was suggested when i looked in to it a while ago.
Blue