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
1. Example
Project: TraceLab
Source File: ExtendedForm.cs
Source File: ExtendedForm.cs
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); }
0
2. Example
Project: meridian59-dotnet
Source File: AddFrameSetIndexForm.cs
Source File: AddFrameSetIndexForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); cbFrames.DataSource = Program.CurrentFile.Frames; cbFrames.DisplayMember = BgfBitmap.PROPNAME_NUM; }
0
3. 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
4. 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
5. Example
Project: IndieLauncher
Source File: UpdateForm.cs
Source File: UpdateForm.cs
protected override void OnLoad( EventArgs e ) { base.OnLoad( e ); m_updater.Start(); }
0
6. 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
7. 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
8. Example
Project: Eddie
Source File: Form.cs
Source File: Form.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); }
0
9. 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
10. 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
11. 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
12. Example
Project: AzureKeyVaultExplorer
Source File: Telemetry.cs
Source File: Telemetry.cs
protected override void OnLoad(EventArgs e) { _startTime = DateTimeOffset.UtcNow; base.OnLoad(e); }
0
13. Example
Project: InnovatorAdmin
Source File: ErrorWindow.cs
Source File: ErrorWindow.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.TopMost = false; }
0
14. 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
15. 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
16. 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
17. 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
18. 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
19. 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
20. 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
21. 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
22. 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
23. 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
24. 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
25. 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
26. 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
27. Example
Project: fdotoolbox
Source File: CoordinateSystemBrowserDialog.cs
Source File: CoordinateSystemBrowserDialog.cs
protected override void OnLoad(EventArgs e) { _presenter.Init(); base.OnLoad(e); }
0
28. Example
Project: fdotoolbox
Source File: FdoSpatialContextDialog.cs
Source File: FdoSpatialContextDialog.cs
protected override void OnLoad(EventArgs e) { _presenter.Init(); base.OnLoad(e); }
0
29. 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
30. 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
31. 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
32. 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
33. 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
34. 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
35. 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
36. 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
37. 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
38. 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
39. Example
Project: amaranth
Source File: MainForm.cs
Source File: MainForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); }
0
40. 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
41. 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
42. Example
Project: OpenLiveWriter
Source File: TestWizardMain.cs
Source File: TestWizardMain.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); }
0
43. 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
44. 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
45. 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
46. 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
47. 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
48. 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
49. 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
50. Example
Project: SharpDX
Source File: RenderForm.cs
Source File: RenderForm.cs
protected override void OnLoad(EventArgs e) { base.OnLoad(e); // UpdateScreen(); }