System.Windows.Forms.Form.OnLoad(System.EventArgs)

Here are the examples of the csharp api class System.Windows.Forms.Form.OnLoad(System.EventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

200 Examples 7

1. Example

Project: TraceLab
Source File: ExtendedForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            if( !DesignMode && _useSystemFont )
            {
                Font = System.Drawing.SystemFonts.IconTitleFont;
                Microsoft.Win32.SystemEvents.UserPreferenceChanged += new Microsoft.Win32.UserPreferenceChangedEventHandler(SystemEvents_UserPreferenceChanged);
            }
            base.OnLoad(e);
        }

2. Example

View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            cbFrames.DataSource = Program.CurrentFile.Frames;
            cbFrames.DisplayMember = BgfBitmap.PROPNAME_NUM;
        }

3. Example

View license
protected override void OnLoad(EventArgs e)
    {
      if (!this.DesignMode)
      {
        this.Font = SystemFonts.MessageBoxFont;
      }

      base.OnLoad(e);
    }

4. Example

View license
protected override void OnLoad(EventArgs e)
    {
      this.Font = SystemFonts.MessageBoxFont;

      base.OnLoad(e);
    }

5. Example

Project: IndieLauncher
Source File: UpdateForm.cs
View license
protected override void OnLoad( EventArgs e )
        {
            base.OnLoad( e );
            m_updater.Start();
        }

6. Example

Project: xsddiagram
Source File: LoginPromptForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            this.textBoxUsername.Text = Username;
            this.textBoxPassword.Text = Password;
        }

7. Example

Project: xsddiagram
Source File: OpenURLForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            this.textBoxURL.Text = URL;
        }

8. Example

Project: Eddie
Source File: Form.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
        }

9. Example

Project: DropboxBusinessAdminTool
Source File: FormEx.cs
View license
protected override void OnLoad(System.EventArgs e) {
            if ((m_settings & FormExStyle.CENTERED_WINDOW) == FormExStyle.CENTERED_WINDOW) {
                this.StartPosition = FormStartPosition.Manual;
                this.Location = new Point(
                    this.Owner.Location.X + (this.Owner.Width - this.Width) / 2,
                    this.Owner.Location.Y + (this.Owner.Height - this.Height) / 2
                );
            }
            base.OnLoad(e);
        }

10. Example

View license
protected override void OnLoad(EventArgs e)
            {
                base.OnLoad(e);

                if (placesListBox.Items.Count > 0)
                    placesListBox.SelectedIndex = 0;
            }

11. Example

Project: uTorrent-Notifier
Source File: Program.cs
View license
protected override void OnLoad(EventArgs e)
        {
            Visible = false; // Hide form window.
            ShowInTaskbar = false; // Remove from taskbar.

            base.OnLoad(e);
        }

12. Example

Project: AzureKeyVaultExplorer
Source File: Telemetry.cs
View license
protected override void OnLoad(EventArgs e)
        {
            _startTime = DateTimeOffset.UtcNow;
            base.OnLoad(e);
        }

13. Example

Project: InnovatorAdmin
Source File: ErrorWindow.cs
View license
protected override void OnLoad(EventArgs e)
    {
      base.OnLoad(e);
      this.TopMost = false;
    }

14. Example

Project: CSharp_MARC
Source File: MainForm.cs
View license
private void createBlankRecordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (SQLiteConnection connection = new SQLiteConnection(ConnectionString))
            {
                connection.Open();

                string query = "INSERT INTO Records (DateAdded, Author, Title) VALUES (CURRENT_DATE, 'New Record', 'New Record')";

                using (SQLiteCommand command = new SQLiteCommand(query, connection))
                {
                    command.ExecuteNonQuery();

                    OnLoad(new EventArgs());
                }
            }
        }

15. Example

Project: mbunit-v3
Source File: ReloadDialog.cs
View license
protected override void OnLoad(EventArgs e)
		{
			alwaysReload.DataBindings.Add("Checked", optionsController, "AlwaysReloadFiles",
				false, DataSourceUpdateMode.OnPropertyChanged);

			base.OnLoad(e);
		}

16. Example

Project: trizbort
Source File: DisambiguateRoomsDialog.cs
View license
protected override void OnLoad(EventArgs e)
        {
            if (m_roomNamesListBox.Items.Count == 1)
            {
                // if there's only one option, select it
                m_roomNamesListBox.SelectedIndex = 0;
            }

            m_transcriptContextTextBox.Focus();
            m_transcriptContextTextBox.Select(0, 0);

            base.OnLoad(e);
        }

17. Example

View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Text = DialogTitle;
            textBox1.Text = ContentText;
            textBox1.Select(0, 0);
        }

18. Example

View license
protected override void OnLoad(EventArgs e)
        {
            AutoScaleMode = AppSettings.EnableAutoScale
                ? AutoScaleMode.Dpi
                : AutoScaleMode.None;
            base.OnLoad(e);
        }

19. Example

Project: HyperionScreenCap
Source File: Form1.cs
View license
protected override void OnLoad(EventArgs e)
        {
            Visible = false; // Hide form window.
            ShowInTaskbar = false; // Remove from taskbar.

            base.OnLoad(e);
        }

20. Example

View license
protected override void OnLoad(EventArgs e)
        {
            _dockingManager.Theme = new Vs2013LightTheme();
            XmlLayoutSerializer serializer = new XmlLayoutSerializer(_dockingManager);

            serializer.LayoutSerializationCallback += (s, args) =>
                {
                    switch (args.Model.ContentId)
                    {
                        case "toolWindow1":
                            args.Content = new System.Windows.Controls.TextBlock() { Text = args.Model.ContentId };
                            break;
                        default:
                            args.Content = new System.Windows.Controls.TextBox() { Text = args.Model.ContentId };
                            break;
                    }

                };

            serializer.Deserialize(
                new System.IO.StringReader(
                AvalonDock.WinFormsTestApp.Properties.Settings.Default.DefaultLayout));


            //LayoutDocument doc = new LayoutDocument() { Title = "test" };
            //dockingManager.Layout.Descendents().OfType<LayoutDocumentPane>().First().Children.Add(doc);

            dockingManagerHost.Child = _dockingManager;

            base.OnLoad(e);
        }

21. Example

Project: 32feet
Source File: ObjectPushForm.cs
View license
protected override void OnLoad(EventArgs e)
		{
			try
			{
				bc = new BluetoothClient();
			}
			catch
			{
				btnBluetooth.Enabled = false;
			}
			try
			{
				ic = new IrDAClient();
			}
			catch
			{
				btnIr.Enabled = false;
			}

			base.OnLoad (e);
		}

22. Example

Project: mutefm
Source File: WinSoundServerSysTray.cs
View license
protected override void OnLoad(EventArgs e)
        {
            this.Visible = false;
            this.ShowInTaskbar = false;
            base.OnLoad(e);

            //TODO MuteApp.UiPackage.UiCommands.HideMixer(); //TODO: hack

        }

23. Example

Project: trizbort
Source File: DisambiguateRoomsDialog.cs
View license
protected override void OnLoad(EventArgs e)
        {
            if (m_roomNamesListBox.Items.Count == 1)
            {
                // if there's only one option, select it
                m_roomNamesListBox.SelectedIndex = 0;
            }

            m_transcriptContextTextBox.Focus();
            m_transcriptContextTextBox.Select(0, 0);

            base.OnLoad(e);
        }

24. Example

Project: Jot
Source File: TestForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            //use convenience method for setting up Form tracking
            Services.Tracker.Configure(this).Apply();
            
            //Track colorpicker1 usercontrol (based on specified attributes)
            Services.Tracker.Configure(colorPicker1).Apply();

            //Track colorpicker2 usercontrol (based on specified attributes)
            Services.Tracker.Configure(colorPicker2).Apply();
        }

25. Example

Project: tray-windows
Source File: tray.cs
View license
protected override void OnLoad(EventArgs e)
    {
        Visible = false; // Hide form window.
        ShowInTaskbar = false; // Remove from taskbar.

        base.OnLoad(e);
    }

26. Example

Project: fdotoolbox
Source File: ConnectionPicker.cs
View license
protected override void OnLoad(EventArgs e)
        {
            FdoConnectionManager connMgr = ServiceManager.Instance.GetService<FdoConnectionManager>();
            lstConnections.DataSource = new List<string>(connMgr.GetConnectionNames());
            base.OnLoad(e);
        }

27. Example

View license
protected override void OnLoad(EventArgs e)
        {
            _presenter.Init();
            base.OnLoad(e);
        }

28. Example

View license
protected override void OnLoad(EventArgs e)
        {
            _presenter.Init();
            base.OnLoad(e);
        }

29. Example

Project: fdotoolbox
Source File: NewProcessDialog.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            //Whenever more commands are added to FdoUtil.exe, they need to be added
            //here too
            cmbCommands.Items.Add("ApplySchema");
            cmbCommands.Items.Add("Destroy");
            cmbCommands.Items.Add("DumpSchema");
            cmbCommands.Items.Add("CreateFile");
            cmbCommands.Items.Add("CreateDataStore");
            cmbCommands.Items.Add("RegisterProvider");
            cmbCommands.Items.Add("UnregisterProvider");
            cmbCommands.Items.Add("BulkCopy");
            cmbCommands.Items.Add("RunTask");
            cmbCommands.Items.Add("ExecuteSql");
        }

30. Example

Project: apkshellext
Source File: Preferences.cs
View license
private void combLanguage_SelectedIndexChanged(object sender, EventArgs e) {
            CultureInfo[] culs = Utility.getSupportedLanguages();
            CultureInfo cul = culs[combLanguage.SelectedIndex];
            Settings.Default.Language = cul.LCID;
            if (formLoaded)
                this.OnLoad(e);
        }

31. Example

Project: bing-wallpaper
Source File: MainForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            Visible = false; // Hide form window.
            ShowInTaskbar = false; // Remove from taskbar.

            base.OnLoad(e);
        }

32. Example

Project: Lidarr
Source File: SysTrayApp.cs
View license
protected override void OnLoad(EventArgs e)
        {
            Visible = false;
            ShowInTaskbar = false;

            base.OnLoad(e);
        }

33. Example

Project: FileHelpers
Source File: frmExamples.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            examplesContainer.LoadExamples(ExamplesFactory.GetExamples());
        }

34. Example

Project: RedditSaveTransfer
Source File: Form1.cs
View license
protected override void OnLoad(EventArgs e)
        {
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            //For testing different dpi settings

            //this.Font = new Font(this.Font.FontFamily, this.Font.Size * 120 / 96);
            //this.Font = new Font(this.Font.FontFamily, this.Font.Size * 144 / 96);
            //this.Font = new Font(this.Font.FontFamily, this.Font.Size * 192 / 96);
            base.OnLoad(e);
        }

35. Example

Project: ZXing.Net
Source File: DecodingOptionsForm.cs
View license
protected override void OnLoad(EventArgs e)
      {
         base.OnLoad(e);

         chkTryInverted.Checked = reader.TryInverted;
         chkTryHarder.Checked = reader.Options.TryHarder;
         chkAutoRotate.Checked = reader.AutoRotate;
         chkPureBarcode.Checked = reader.Options.PureBarcode;

         chkCode39CheckDigit.Checked = reader.Options.AssumeCode39CheckDigit;
         chkCode39ExtendedMode.Checked = reader.Options.UseCode39ExtendedMode;
         chkCode39ExtendedModeRelaxed.Checked = reader.Options.UseCode39RelaxedExtendedMode;
      }

36. Example

Project: ZXing.Net
Source File: WindowsFormsDemoForm.cs
View license
protected override void OnLoad(EventArgs e)
      {
         base.OnLoad(e);

         foreach (var format in MultiFormatWriter.SupportedWriters)
            cmbEncoderType.Items.Add(format);
      }

37. Example

Project: RoomAliveToolkit
Source File: ProjectorForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
 
            // Direct2D
            var renderTargetProperties = new RenderTargetProperties()
            {
                PixelFormat = new PixelFormat(SharpDX.DXGI.Format.B8G8R8A8_UNorm, AlphaMode.Ignore)
            };
            var hwndRenderTargetProperties = new HwndRenderTargetProperties()
            {
                Hwnd = this.Handle,
                PixelSize = new Size2(bounds.Width, bounds.Height),
                PresentOptions = PresentOptions.Immediately,
            };
            renderTarget = new WindowRenderTarget(factory, renderTargetProperties, hwndRenderTargetProperties);

            var bitmapProperties = new BitmapProperties()
            {
                PixelFormat = new PixelFormat(SharpDX.DXGI.Format.B8G8R8A8_UNorm, AlphaMode.Ignore)
            };
            bitmap = new SharpDX.Direct2D1.Bitmap(renderTarget, new Size2(bounds.Width, bounds.Height), bitmapProperties);

            textFormat = new TextFormat(directWriteFacrtory, "Arial", FontWeight.Normal, SharpDX.DirectWrite.FontStyle.Normal, 96.0f);
            textFormat.ParagraphAlignment = ParagraphAlignment.Center;
            textFormat.TextAlignment = TextAlignment.Center;

            solidColorBrush = new SolidColorBrush(renderTarget, Color4.White);
        }

38. Example

Project: amaranth
Source File: DungeonForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            mContent = DataFiles.Load();

            mPropertyGrid.SelectedObject = new FeatureCreepGeneratorOptions();
        }

39. Example

Project: amaranth
Source File: MainForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
        }

40. Example

Project: amaranth
Source File: StatsForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            mStats = new AsyncStats();
            mStats.Updated += Stats_Updated;

            statsGrid1.SetStats(mStats.StatRows);

            ClientSize = new Size(statsGrid1.Width + 20, ClientSize.Height);

            mStats.Run();
        }

41. Example

Project: OpenLiveWriter
Source File: TestAutoDetection.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            textBoxUsername.Text = settings.GetString("Username", String.Empty) ;
            textBoxPassword.Text = settings.GetString("Password", String.Empty );
            weblogHomepageUrlControl.HomepageUrl = settings.GetString("WeblogUrl", String.Empty);
        }

42. Example

Project: OpenLiveWriter
Source File: TestWizardMain.cs
View license
protected override void OnLoad(EventArgs e)
            {
                base.OnLoad(e);


            }

43. Example

Project: Oxide.Patcher
Source File: ModifyForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (Instruction != null)
            {
                opcodes.SelectedItem = Instruction.OpCode;
                optypes.SelectedItem = Instruction.OpType;
            }
            else
            {
                opcodes.SelectedIndex = 0;
                optypes.SelectedIndex = 0;
            }
        }

44. Example

Project: winforms-modernui
Source File: MetroForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (metroDropShadowForm == null && !DesignMode && hasShadow)
                metroDropShadowForm = new MetroDropShadow(this);
        }

45. Example

Project: Radarr
Source File: SysTrayApp.cs
View license
protected override void OnLoad(EventArgs e)
        {
            Visible = false;
            ShowInTaskbar = false;

            base.OnLoad(e);
        }

46. Example

Project: AR.Drone
Source File: MainForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            Text += Environment.Is64BitProcess ? " [64-bit]" : " [32-bit]";
        }

47. Example

Project: TrackballScroll
Source File: MainForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            Visible = false;       // Hide form window.
            ShowInTaskbar = false; // Remove from taskbar.
            base.OnLoad(e);
        }

48. Example

Project: GEDKeeper
Source File: ProgressDlg.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            //initEvent.Set();
            fRequiresClose = true;
        }

49. Example

Project: sd-agent-windows
Source File: MainForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            _worker.Start();
        }

50. Example

Project: SharpDX
Source File: RenderForm.cs
View license
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            // UpdateScreen();
        }