Hi,
Is it possible to change the icon in an eto form to match my plugin ?
thanks,
Keith
Hi @Keith1634,
try this:
dlg = Dialog[bool](Title = "Some Dialog", Padding = Padding(10))
dlg.Icon = Icon("Heart.ico")

Where “Heart.ico” must be a path if it is not in the same folder as the python script calling the dialog. If you´re writing in a language which supports recources, you can use:
dlg.Icon = Icon.FromRecource("Heart.ico")
c.
wow thanks Clement.
For anyone who is curios:
This took me longer to fix than I would like to admit, but if you want to do this in csharp, you have to set the image, icon ressource in the properties to EmbeddedRessource.
You can do this for example in Visual Studio via:
Locate the ressource .png, .ico, etc
Right Click on the image and select Properties
Another window should open, where under BuildAction you shoud select “EmbeddedRessource”
Now everything works as expected.
kind regards,
benterich