Skip to content

Windows Icon

ITAgnesmeyer edited this page Jan 30, 2019 · 3 revisions

Load Icon from File

You can assign an icon to a window. Currently the icon is loaded from a file. To do this, use the IconFile property.

            this.Width = 542;
            this.Height = 300;
            this.BackColor = CoreWindowsWrapper.Tools.ColorTool.White;
            this.ControlId = 500;
            this.Name = "MainForm";
            this.Text = "Welcome to the Setup";
            //Load the Icon from a file in the Application folder.
            this.IconFile = "app.ico";
            this.Create += MainFrom_Create;

Window with Icon

Clone this wiki locally