Set Default Icon to All Forms in an Application

public static void SetDefaultIcon(Icon ico) { typeof(Form).GetField("defaultIcon", BindingFlags.NonPublic | BindingFlags.Static).SetValue(null, ico); }

1 Response

its a webform or win form

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.