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
0
51. Example
Project: Cyotek.Windows.Forms.ImageBox
Source File: BaseForm.cs
Source File: BaseForm.cs
protected override void OnLoad(EventArgs e) { if (!this.DesignMode) { this.Font = SystemFonts.MessageBoxFont; } base.OnLoad(e); }
0
52. Example
Project: Cyotek.Windows.Forms.ColorPicker
Source File: BaseForm.cs
Source File: BaseForm.cs
protected override void OnLoad(EventArgs e) { this.Font = SystemFonts.MessageBoxFont; base.OnLoad(e); }
0
53. Example
Project: IndieLauncher
Source File: UpdateForm.cs
Source File: UpdateForm.cs
protected override void OnLoad( EventArgs e ) { base.OnLoad( e ); m_updater.Start(); }
0
54. Example
Project: xsddiagram
Source File: LoginPromptForm.cs
Source File: LoginPromptForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.textBoxUsername.Text = Username; this.textBoxPassword.Text = Password; }
0
55. Example
Project: xsddiagram
Source File: OpenURLForm.cs
Source File: OpenURLForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.textBoxURL.Text = URL; }
0
56. Example
Project: Eddie
Source File: Form.cs
Source File: Form.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); }
0
57. Example
Project: DropboxBusinessAdminTool
Source File: FormEx.cs
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); }
0
58. Example
Project: sharpshell
Source File: FileDialogPlacesEditor.cs
Source File: FileDialogPlacesEditor.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (placesListBox.Items.Count > 0) placesListBox.SelectedIndex = 0; }
0
59. Example
Project: uTorrent-Notifier
Source File: Program.cs
Source File: Program.cs
protected override void OnLoad(EventArgs e) { Visible = false; // Hide form window. ShowInTaskbar = false; // Remove from taskbar. base.OnLoad(e); }
0
60. Example
Project: AzureKeyVaultExplorer
Source File: Telemetry.cs
Source File: Telemetry.cs
protected override void OnLoad(EventArgs e) { _startTime = DateTimeOffset.UtcNow; base.OnLoad(e); }
0
61. Example
Project: InnovatorAdmin
Source File: ErrorWindow.cs
Source File: ErrorWindow.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.TopMost = false; }
0
62. Example
Project: CSharp_MARC
Source File: MainForm.cs
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()); } } }
0
63. Example
Project: mbunit-v3
Source File: ReloadDialog.cs
Source File: ReloadDialog.cs
protected override void OnLoad(EventArgs e) { alwaysReload.DataBindings.Add("Checked", optionsController, "AlwaysReloadFiles", false, DataSourceUpdateMode.OnPropertyChanged); base.OnLoad(e); }
0
64. Example
Project: trizbort
Source File: DisambiguateRoomsDialog.cs
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); }
0
65. Example
Project: gitextensions
Source File: SimpleHelpDisplayDialog.cs
Source File: SimpleHelpDisplayDialog.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); Text = DialogTitle; textBox1.Text = ContentText; textBox1.Select(0, 0); }
0
66. Example
Project: gitextensions
Source File: GitExtensionsFormBase.cs
Source File: GitExtensionsFormBase.cs
protected override void OnLoad(EventArgs e) { AutoScaleMode = AppSettings.EnableAutoScale ? AutoScaleMode.Dpi : AutoScaleMode.None; base.OnLoad(e); }
0
67. Example
Project: HyperionScreenCap
Source File: Form1.cs
Source File: Form1.cs
protected override void OnLoad(EventArgs e) { Visible = false; // Hide form window. ShowInTaskbar = false; // Remove from taskbar. base.OnLoad(e); }
0
68. Example
Project: AvalonDock.Themes.VS2013
Source File: FormMain.cs
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); }
0
69. Example
Project: 32feet
Source File: ObjectPushForm.cs
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); }
0
70. Example
Project: mutefm
Source File: WinSoundServerSysTray.cs
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 }
0
71. Example
Project: trizbort
Source File: DisambiguateRoomsDialog.cs
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); }
0
72. Example
Project: Jot
Source File: TestForm.cs
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(); }
0
73. Example
Project: tray-windows
Source File: tray.cs
Source File: tray.cs
protected override void OnLoad(EventArgs e) { Visible = false; // Hide form window. ShowInTaskbar = false; // Remove from taskbar. base.OnLoad(e); }
0
74. Example
Project: fdotoolbox
Source File: ConnectionPicker.cs
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); }
0
75. Example
Project: fdotoolbox
Source File: CoordinateSystemBrowserDialog.cs
Source File: CoordinateSystemBrowserDialog.cs
protected override void OnLoad(EventArgs e) { _presenter.Init(); base.OnLoad(e); }
0
76. Example
Project: fdotoolbox
Source File: FdoSpatialContextDialog.cs
Source File: FdoSpatialContextDialog.cs
protected override void OnLoad(EventArgs e) { _presenter.Init(); base.OnLoad(e); }
0
77. Example
Project: fdotoolbox
Source File: NewProcessDialog.cs
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"); }
0
78. Example
Project: apkshellext
Source File: Preferences.cs
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); }
0
79. Example
Project: bing-wallpaper
Source File: MainForm.cs
Source File: MainForm.cs
protected override void OnLoad(EventArgs e) { Visible = false; // Hide form window. ShowInTaskbar = false; // Remove from taskbar. base.OnLoad(e); }
0
80. Example
Project: Lidarr
Source File: SysTrayApp.cs
Source File: SysTrayApp.cs
protected override void OnLoad(EventArgs e) { Visible = false; ShowInTaskbar = false; base.OnLoad(e); }
0
81. Example
Project: FileHelpers
Source File: frmExamples.cs
Source File: frmExamples.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); examplesContainer.LoadExamples(ExamplesFactory.GetExamples()); }
0
82. Example
Project: RedditSaveTransfer
Source File: Form1.cs
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); }
0
83. Example
Project: ZXing.Net
Source File: DecodingOptionsForm.cs
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; }
0
84. Example
Project: ZXing.Net
Source File: WindowsFormsDemoForm.cs
Source File: WindowsFormsDemoForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); foreach (var format in MultiFormatWriter.SupportedWriters) cmbEncoderType.Items.Add(format); }
0
85. Example
Project: RoomAliveToolkit
Source File: ProjectorForm.cs
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); }
0
86. Example
Project: amaranth
Source File: DungeonForm.cs
Source File: DungeonForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); mContent = DataFiles.Load(); mPropertyGrid.SelectedObject = new FeatureCreepGeneratorOptions(); }
0
87. Example
Project: amaranth
Source File: MainForm.cs
Source File: MainForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); }
0
88. Example
Project: amaranth
Source File: StatsForm.cs
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(); }
0
89. Example
Project: OpenLiveWriter
Source File: TestAutoDetection.cs
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); }
0
90. Example
Project: OpenLiveWriter
Source File: TestWizardMain.cs
Source File: TestWizardMain.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); }
0
91. Example
Project: Oxide.Patcher
Source File: ModifyForm.cs
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; } }
0
92. Example
Project: winforms-modernui
Source File: MetroForm.cs
Source File: MetroForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (metroDropShadowForm == null && !DesignMode && hasShadow) metroDropShadowForm = new MetroDropShadow(this); }
0
93. Example
Project: Radarr
Source File: SysTrayApp.cs
Source File: SysTrayApp.cs
protected override void OnLoad(EventArgs e) { Visible = false; ShowInTaskbar = false; base.OnLoad(e); }
0
94. Example
Project: AR.Drone
Source File: MainForm.cs
Source File: MainForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); Text += Environment.Is64BitProcess ? " [64-bit]" : " [32-bit]"; }
0
95. Example
Project: TrackballScroll
Source File: MainForm.cs
Source File: MainForm.cs
protected override void OnLoad(EventArgs e) { Visible = false; // Hide form window. ShowInTaskbar = false; // Remove from taskbar. base.OnLoad(e); }
0
96. Example
Project: GEDKeeper
Source File: ProgressDlg.cs
Source File: ProgressDlg.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); //initEvent.Set(); fRequiresClose = true; }
0
97. Example
Project: sd-agent-windows
Source File: MainForm.cs
Source File: MainForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); _worker.Start(); }
0
98. Example
Project: SharpDX
Source File: RenderForm.cs
Source File: RenderForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); // UpdateScreen(); }
0
99. Example
Project: SharpMap
Source File: Form1.cs
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(); }
0
100. Example
Project: tfsproductivitypack
Source File: WorkSpaceMappingDialog.cs
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; } }