ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set different icons for different windows which is seen in the top left corner?

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

0 Kudos
Message 1 of 5
(2,986 Views)

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

0 Kudos
Message 2 of 5
(2,976 Views)

Smiley HappyHi Mike 

 

If you don't mind can you please please send me the code that you had tested.

 

Regards

Sam

0 Kudos
Message 3 of 5
(2,970 Views)

Hi Sam,

no problem. See the attachment.

 

Mike

0 Kudos
Message 4 of 5
(2,963 Views)

....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 

 

 

0 Kudos
Message 5 of 5
(2,956 Views)