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

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

73 Examples 7

1. Example

Project: JiraSVN
Source File: OptionUrlEntry.cs
protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);
		}

2. Example

Project: Cyotek.Windows.Forms.ImageBox
Source File: BaseForm.cs
protected override void OnShown(EventArgs e)
    {
      base.OnShown(e);

      Cursor.Current = Cursors.Default;
    }

3. Example

Project: Cyotek.Windows.Forms.ColorPicker
Source File: BaseForm.cs
protected override void OnShown(EventArgs e)
    {
      base.OnShown(e);

      Cursor.Current = Cursors.Default;
    }

4. Example

Project: kcptun-gui-windows
Source File: LogForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
            logViewerUserControl1.ScrollToCaret();
        }

5. Example

Project: gitter
Source File: DialogForm.cs
protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);
			_dialog.InvokeOnShown();
			if(_elevated != null && !Utility.IsRunningWithAdministratorRights)
			{
				if(_elevated.RequireElevation)
				{
					if(_btnOK.Visible) _btnOK.ShowUACShield();
					if(_btnApply.Visible) _btnApply.ShowUACShield();
				}
				_elevated.RequireElevationChanged += OnRequireElevationExecutionChanged;
			}
		}

6. Example

Project: gitter
Source File: MainForm.cs
protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);
			_process.BeginUpdate(_monitor);
		}

7. Example

Project: Bulk-Crap-Uninstaller
Source File: MainWindow.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            _handler.StatusUpdate += HandlerOnStatusUpdate;
            _handler.Start();
        }

8. Example

Project: P8Coder
Source File: GoToForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            this.tbLineNumber.Focus();
        }

9. Example

Project: mRemoteNG
Source File: frmTaskDialog.cs
protected override void OnShown(EventArgs e)
        {
            if (!_formBuilt)
                throw new Exception("frmTaskDialog : Please call .BuildForm() before showing the TaskDialog");
            base.OnShown(e);
        }

10. Example

Project: BaijiGenerator.Net
Source File: GoToForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            this.tbLineNumber.Focus();
        }

11. Example

Project: dash-core
Source File: GoToForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            this.tbLineNumber.Focus();
        }

12. Example

Project: OpenLiveWriter
Source File: BaseForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
            if (!suppressAutoRtlFixup)
                BidiHelper.RtlLayoutFixup(this);

            if (SystemInformation.HighContrast)
            {
                ControlHelper.Walk(
                    delegate (Control c, object state)
                        {
                            LinkLabel link = c as LinkLabel;
                            if (link != null)
                            {
                                if (link.LinkColor == SystemColors.HotTrack)
                                    link.LinkColor = SystemColors.ControlText;
                                if (link.LinkBehavior != LinkBehavior.AlwaysUnderline)
                                    link.LinkBehavior = LinkBehavior.AlwaysUnderline;
                            }
                        },
                        this,
                        null);
            }
        }

13. Example

Project: WYZTracker
Source File: DeviceDialog.cs
protected override void OnShown(EventArgs e)
        {
            if(InputDevice.DeviceCount > 0)
            {
                inputComboBox.SelectedIndex = inputDeviceID;
            }

            if(OutputDevice.DeviceCount > 0)
            {
                outputComboBox.SelectedIndex = outputDeviceID;
            }

            base.OnShown(e);
        }

14. Example

Project: WYZTracker
Source File: InputDeviceDialog.cs
protected override void OnShown(EventArgs e)
        {
            if(InputDevice.DeviceCount > 0)
            {
                inputComboBox.SelectedIndex = inputDeviceID;
            }

            base.OnShown(e);
        }

15. Example

Project: WYZTracker
Source File: OutputDeviceDialog.cs
protected override void OnShown(EventArgs e)
        {
            if(OutputDevice.DeviceCount > 0)
            {
                outputComboBox.SelectedIndex = outputDeviceID;
            }

            base.OnShown(e);
        }

16. Example

Project: ShareX
Source File: GreenshotForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
            if (ToFront)
            {
                WindowDetails.ToForeground(Handle);
            }
        }

17. Example

Project: ShareX
Source File: ScreenTearingTestForm.cs
protected override void OnShown(EventArgs e)
        {
            this.ForceActivate();

            base.OnShown(e);
        }

18. Example

Project: ATF
Source File: MainForm.cs
protected override void OnShown(EventArgs e)
        {
            m_showen = true;
            base.OnShown(e);            
            // if m_loading is true then this is called before
            // OnLoad finshed, so in this case don't raise
            // Loaded event because we still processing Loading event.
            if (!m_loading)
                Loaded.Raise(this, e);
        }

19. Example

Project: Gorgon
Source File: BaseDialog.cs
protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);

		    if ((!DesignMode) && (Owner != null))
		    {
		        Icon = Owner.Icon;
		    }
		}

20. Example

Project: Sanford.Multimedia.Midi
Source File: DeviceDialog.cs
protected override void OnShown(EventArgs e)
        {
            if(InputDevice.DeviceCount > 0)
            {
                inputComboBox.SelectedIndex = inputDeviceID;
            }

            if(OutputDevice.DeviceCount > 0)
            {
                outputComboBox.SelectedIndex = outputDeviceID;
            }

            base.OnShown(e);
        }

21. Example

Project: Sanford.Multimedia.Midi
Source File: InputDeviceDialog.cs
protected override void OnShown(EventArgs e)
        {
            if(InputDevice.DeviceCount > 0)
            {
                inputComboBox.SelectedIndex = inputDeviceID;
            }

            base.OnShown(e);
        }

22. Example

Project: Sanford.Multimedia.Midi
Source File: OutputDeviceDialog.cs
protected override void OnShown(EventArgs e)
        {
            if(OutputDevice.DeviceCount > 0)
            {
                outputComboBox.SelectedIndex = outputDeviceID;
            }

            base.OnShown(e);
        }

23. Example

Project: ynoteclassic
Source File: GoToForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            tbLineNumber.Focus();
        }

24. Example

Project: ynoteclassic
Source File: Commander.cs
protected override void OnShown(EventArgs e)
        {
            completemenu.Show(tbcommand, true);
            base.OnShown(e);
        }

25. Example

Project: ynoteclassic
Source File: CommandWindow.cs
protected override void OnShown(EventArgs e)
        {
            completemenu.Show(tbCmd, true);
            base.OnShown(e);
        }

26. Example

Project: ReoGrid
Source File: ReoGridEditor.cs
protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);
		}

27. Example

Project: xenadmin
Source File: FullScreenForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            if (Properties.Settings.Default.PinConnectionBar)
                connectionBar1.ShowPinned();
            else
                connectionBar1.HideAnimated();
        }

28. Example

Project: xenadmin
Source File: MainWindow.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
            TheTabControl.Visible = true;
            alertPage.Visible = updatesPage.Visible = eventsPage.Visible = false;
            navigationPane.FocusTreeView();
        }

29. Example

Project: BloomDesktop
Source File: LoginDialog.cs
protected override void OnShown(EventArgs e)
		{
			_emailBox.Select();
			base.OnShown(e);
		}

30. Example

Project: duality
Source File: CreateObjectDialog.cs
protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);
			this.objectTypeView.Model = this.model;
		}

31. Example

Project: duality
Source File: SplashScreen.cs
protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);
			this.mainFormLoader.RunWorkerAsync(this);
		}

32. Example

Project: duality
Source File: WelcomeDialog.cs
protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);
			this.actionList.Model = this.actionModel;
		}

33. Example

Project: Krypton
Source File: VisualForm.cs
protected override void OnShown(EventArgs e)
        {
            // Under Windows7 a modal window with custom chrome under the DWM
            // will sometimes not be drawn when first shown.
            if (Environment.OSVersion.Version.Major >= 6)
                PerformNeedPaint(true);

            base.OnShown(e);
        }

34. Example

Project: CubePdf
Source File: MainForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            SettingButton.Enabled = false;
            Activate();
            TopMost = true;
            TopMost = false;
        }

35. Example

Project: wizard-framework
Source File: Wizard.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
            this.ShowWizardPage();
        }

36. Example

Project: DFAssist
Source File: MainForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            if (!Settings.StartupShowMainForm)
            {
                Hide();
            }
        }

37. Example

Project: DropboxBusinessAdminTool
Source File: MainView.cs
protected override void OnShown(EventArgs e) {
            base.OnShown(e);
            RepaintTabControlBackground();
        }

38. Example

Project: EDDiscovery
Source File: TimedMessage.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            ontimer.Start();
        }

39. Example

Project: RocksmithToTab
Source File: CallProgram.cs
protected override void OnShown(EventArgs e)
        {
            StartProcess();
            base.OnShown(e);
        }

40. Example

Project: fomm
Source File: BackgroundWorkerProgressDialog.cs
protected override void OnShown(EventArgs e)
    {
      base.OnShown(e);
      m_bgwWorker.RunWorkerAsync(m_objWorkMethodParam);
    }

41. Example

Project: MaterialWinforms
Source File: ColorOverlay.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
            objAnimationManager.SetProgress(0);
            _Origin = PointToClient(_Origin); ;
            objAnimationManager.StartNewAnimation(AnimationDirection.In);
        }

42. Example

Project: GKeyBank
Source File: kForm.cs
protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
            Refresh();
        }

43. Example

Project: LiveSplit
Source File: ColorPickerDialog.cs
protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);
			this.selColor = this.oldColor;
			this.UpdateColorControls();
		}

44. Example

Project: Speed-Test-Loggger
Source File: FormMain.cs
protected override void OnShown(EventArgs e)
        {
            // Explorer themed ListView
            Global.SetWindowTheme(ListLog.Handle, "Explorer", null);
            Global.SendMessage(ListLog.Handle, 0x1000 + 54, 0x00010000, 0x00010000); // LVS_EX_DOUBLEBUFFERED

            // Extend frame if Desktop Composition (Aero) is enabled
            if (Global.CompositionEnabled && !Global.IsWindows8)
            {
                BackColor = Color.Black;
                ContainerMain.BackColor = SystemColors.Control;
                
                Global.ExtendFrame(this.Handle, new System.Drawing.Printing.Margins(0, 0, ToolBarMain.Height, 0));

                //if (Global.IsWindows8) Global.SetWindowTheme(ToolBarMain.Handle, "TrayNotifyComposited", null);
                Global.SetWindowTheme(ToolBarMain.Handle, "Media", null);
            }

            // Start logging
            if (p_StartLogging) MenuStartLogging_Click(this, EventArgs.Empty);

            // Continue processing the event as usual
            base.OnShown(e);
        }

45. Example

Project: Unity-WinForms
Source File: Form.cs
public void Show(bool fShouldFocus = true)
        {
            Visible = true;

            int self = uwfAppOwner.Forms.FindIndex(x => x == this);
            if (self == -1)
                uwfAppOwner.Forms.Add(this);

            if (fShouldFocus)
            {
                Focus();
                _SelectFirstControl();
            }

            OnShown(EventArgs.Empty);
        }

46. Example

Project: Unity-WinForms
Source File: Form.cs
public DialogResult ShowDialog(Action<Form, DialogResult> onClosed = null)
        {
            dialog = true;
            dialogCallback = onClosed;

            Visible = true;

            int self = uwfAppOwner.ModalForms.FindIndex(x => x == this);
            if (self == -1)
                uwfAppOwner.ModalForms.Add(this);

            Focus();
            _SelectFirstControl();

            OnShown(EventArgs.Empty);

            return DialogResult;
        }

47. Example

Project: revitpythonshell
Source File: CompletionToolTip.cs
protected override void OnShown(EventArgs e)
            {
                base.OnShown(e);
                _completions.Focus();
            }

48. Example

Project: Nexus-Mod-Manager
Source File: ProgressDialog.cs
protected override void OnShown(EventArgs e)
		{
			base.OnShown(e);
			if (!Task.IsActive)
			{
				//we need to set this again, as it gets reset once the form is shown,
				// and if we are here, we set it before the form was shown
				DialogResult = m_drtLastDialogResult;
				Close();
			}
		}

49. Example

Project: OpenLiveWriter
Source File: AutoCompleteTextbox.cs
protected override void OnShown(EventArgs e)
        {
            AdjustListSize();

            base.OnShown(e);
        }

50. Example

Project: Aspose.Words-for-.NET
Source File: DocumentPreviewAndPrint.cs
protected override void OnShown(EventArgs e)
        {
            Activate();
            base.OnShown(e);
        }