29-03-15, 01:55 AM
الكود يعمل فى vb.net اما فى C# لا
كود :
Dim fullPath As String = IO.Path.GetFullPath(My.Resources.ResourceManager.BaseName)
fullPath = fullPath.Substring(0, fullPath.Length - 39) & "Resources\\WW.ico"
كود :
string geticon = System.IO.Path.GetFullPath(Resources.ResourceManager.BaseName);
geticon = (geticon.Substring(0, (geticon.Length - 39)) + "Resources\\WW.ico");
shortcut.IconLocation = geticon;