john tindell
Jul 5th, 2004, 07:18 AM
Hey how do i set the icon on a form?
i found this
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(parent));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.icon")));
But i dont understand it and it doesnt work.
Heres how im compiling it
csc /r:Interface/Interface.dll /t:winexe /win32icon:parent.ico parent.cs
Thanks
i found this
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(parent));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.icon")));
But i dont understand it and it doesnt work.
Heres how im compiling it
csc /r:Interface/Interface.dll /t:winexe /win32icon:parent.ico parent.cs
Thanks