Change form icon

Hi,

I am using winforms sfForm in vb.net application. In the beginning I chose one icon for the application which will be shown in taskbar. After a while I wanted to change it. So, I did it. When I set in sfForm that icon is not shown in task bar I can see the old icon. But when I set new icon to be shown in task bar you can see new icon. 

What is the problem and how to change this to see new icon in the taskbar even it is not shown on sfForm.

Thank you


2 Replies

VS Vijayarasan Sivanandham Syncfusion Team August 16, 2023 02:20 PM UTC

Hi Sabian Sirius,

Your requirement to change the icon in SfForm can be achieved by using the Icon property. Refer to the below code snippet,

'Set the Icon for the Form.

Me.Icon = New Icon("App.ico")


UG Link: https://help.syncfusion.com/windowsforms/form/formcustomization?cs-save-lang=1&cs-lang=vb#changing-form-icon

Find the sample demo in the attachment.

Regards,
Vijayarasan S

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Attachment: SfFormDemo_62abc759.zip


SS Sabian Sirius August 23, 2023 10:22 AM UTC

Hi,


Thank you very much . Works fine.


Loader.
Up arrow icon