The window is open with 2 different buttons and shows different controls, depending on the button with which it was opened, but I do not know how to change the icon depending on the button with which it was instantiated.
The Icon
property works perfect but only when the icon is unique to the Form; add an icon in location Properties.Resources
but it does not work, it does not throw an exception and it does not work for me if I use a relative path where the .ico
icon I want to use is found.