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

51. Example

Project: Cyotek.Windows.Forms.ImageBox
Source File: BaseForm.cs
protected override void OnLoad(EventArgs e)
    {
      if (!this.DesignMode)
      {
        this.Font = SystemFonts.MessageBoxFont;
      }

      base.OnLoad(e);
    }

52. Example

Project: Cyotek.Windows.Forms.ColorPicker
Source File: BaseForm.cs
protected override void OnLoad(EventArgs e)
    {
      this.Font = SystemFonts.MessageBoxFont;

      base.OnLoad(e);
    }

53. Example

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

54. Example

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

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

55. Example

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

            this.textBoxURL.Text = URL;
        }

56. Example

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

57. Example

Project: DropboxBusinessAdminTool
Source File: FormEx.cs
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);
        }

58. Example

Project: sharpshell
Source File: FileDialogPlacesEditor.cs
protected override void OnLoad(EventArgs e)
            {
                base.OnLoad(e);

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

59. Example

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

            base.OnLoad(e);
        }

60. Example

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

61. Example

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

62. Example

Project: CSharp_MARC
Source File: MainForm.cs
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());
                }
            }
        }

63. Example

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

			base.OnLoad(e);
		}

64. Example

Project: trizbort
Source File: DisambiguateRoomsDialog.cs
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);
        }

65. Example

Project: gitextensions
Source File: SimpleHelpDisplayDialog.cs
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

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

66. Example

Project: gitextensions
Source File: GitExtensionsFormBase.cs
protected override void OnLoad(EventArgs e)
        {
            AutoScaleMode = AppSettings.EnableAutoScale
                ? AutoScaleMode.Dpi
                : AutoScaleMode.None;
            base.OnLoad(e);
        }

67. Example

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

            base.OnLoad(e);
        }

68. Example

Project: AvalonDock.Themes.VS2013
Source File: FormMain.cs
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);
        }

69. Example

Project: 32feet
Source File: ObjectPushForm.cs
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);
		}

70. Example

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

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

        }

71. Example

Project: trizbort
Source File: DisambiguateRoomsDialog.cs
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);
        }

72. Example

Project: Jot
Source File: TestForm.cs
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();
        }

73. Example

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

        base.OnLoad(e);
    }

74. Example

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

75. Example

Project: fdotoolbox
Source File: CoordinateSystemBrowserDialog.cs
protected override void OnLoad(EventArgs e)
        {
            _presenter.Init();
            base.OnLoad(e);
        }

76. Example

Project: fdotoolbox
Source File: FdoSpatialContextDialog.cs
protected override void OnLoad(EventArgs e)
        {
            _presenter.Init();
            base.OnLoad(e);
        }

77. Example

Project: fdotoolbox
Source File: NewProcessDialog.cs
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");
        }

78. Example

Project: apkshellext
Source File: Preferences.cs
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);
        }

79. Example

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

            base.OnLoad(e);
        }

80. Example

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

            base.OnLoad(e);
        }

81. Example

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

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

82. Example

Project: RedditSaveTransfer
Source File: Form1.cs
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);
        }

83. Example

Project: ZXing.Net
Source File: DecodingOptionsForm.cs
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;
      }

84. Example

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

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

85. Example

Project: RoomAliveToolkit
Source File: ProjectorForm.cs
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);
        }

86. Example

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

            mContent = DataFiles.Load();

            mPropertyGrid.SelectedObject = new FeatureCreepGeneratorOptions();
        }

87. Example

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

88. Example

Project: amaranth
Source File: StatsForm.cs
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();
        }

89. Example

Project: OpenLiveWriter
Source File: TestAutoDetection.cs
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);
        }

90. Example

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


            }

91. Example

Project: Oxide.Patcher
Source File: ModifyForm.cs
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;
            }
        }

92. Example

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

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

93. Example

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

            base.OnLoad(e);
        }

94. Example

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

95. Example

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

96. Example

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

97. Example

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

98. Example

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

99. Example

Project: SharpMap
Source File: Form1.cs
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            var map = mapBox1.Map = new SharpMap.Map();
            map.BackColor = System.Drawing.Color.White;
            map.BackgroundLayer.Add(new SharpMap.Layers.TileAsyncLayer(
                new BruTile.Web.OsmTileSource(
                    new BruTile.Web.OsmRequest(BruTile.Web.KnownOsmTileServers.Mapnic), 
                    new BruTile.Cache.FileCache(Application.CommonAppDataPath, "png")), "Mapnic"));
            map.ZoomToExtents();
        }

100. Example

Project: tfsproductivitypack
Source File: WorkSpaceMappingDialog.cs
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            foreach (WorkspaceBranchMapping mapping in originalMappings)
            {
                string[] row = new string[] { mapping.SourceServerPath, mapping.TargetServerPath };
                dataGridViewWorkSpace.Rows.Add(row);
                DataGridViewInvisibleButtonCell cell = dataGridViewWorkSpace[2, dataGridViewWorkSpace.Rows.Count - 1] as DataGridViewInvisibleButtonCell;
                //cell.IsVisible = false;
            }
        }