private void Form1_Load(object sender, EventArgs e) { this.AutoSize = true; this.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.KeyPreview = true; this.Text = Program.url; // set the form icon from .exe file icon this.Icon = IconExtractor.fromFile(Application.ExecutablePath); // create a wildcard rule for this domain (always button) _alwaysRule = generate_rule(Program.url); // check for new version if (Settings.Default.last_version != "nope") { btn_help.BackgroundImage = Resources.update_available; btn_help.Click -= btn_help_Click; btn_help.Click += btn_update_click; } // add vertical buttons to right of form buc = new ButtonsUC(this); this.Controls.Add(buc); this.updateBrowsers(); center_me(); }