منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : مسار ال Resources
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
الكود يعمل فى 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;