Here are the examples of the csharp api class System.Windows.Forms.Control.Show() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
200 Examples
0
1. Example
Project: Borderless-Gaming
Source File: MainWindow.cs
Source File: MainWindow.cs
private void trayIcon_DoubleClick(object sender, EventArgs e) { Show(); WindowState = FormWindowState.Normal; }
0
2. Example
Project: RNGReporter
Source File: Progress.cs
Source File: Progress.cs
public void SetupAndShow( Form caller, int searched, int found, bool delayedDisplay, bool allowCancel) { this.allowCancel = allowCancel; buttonCancel.Visible = allowCancel; allowPause = false; buttonPause.Visible = allowPause; Show(); /* if (caller == null) { if (Application.OpenForms.Count == 0) return; caller = Application.OpenForms[0]; } this.allowCancel = allowCancel; buttonCancel.Visible = allowCancel; labelSearched.Text = searched.ToString(); labelFound.Text = found.ToString(); this.caller = caller; progressBar.Value = 0; if (delayedDisplay) showTime = DateTime.UtcNow.AddSeconds(0.5); else { showTime = DateTime.MinValue; ShowProgress(0, 0, 0); } priorCursor = caller.Cursor; Application.AddMessageFilter(this); * */ }
0
3. Example
Project: RNGReporter
Source File: Progress.cs
Source File: Progress.cs
public void SetupAndShow( Form caller, int searched, int found, bool delayedDisplay, bool allowCancel, EventWaitHandle waitHandle) { this.allowCancel = allowCancel; buttonCancel.Visible = allowCancel; allowPause = true; buttonPause.Visible = allowPause; this.waitHandle = waitHandle; Show(); }
0
4. Example
Project: FloatingGlucose
Source File: FloatingGlucose.cs
Source File: FloatingGlucose.cs
private void showApplicationToolStripMenuItem_Click(object sender, EventArgs e) { this.Show(); }
0
5. Example
Project: TaskScheduler
Source File: TSMMCMockup.cs
Source File: TSMMCMockup.cs
private void SetActionMenu(ToolStrip menuItems) { if (menuItems == null) { itemPanel.Hide(); } else { if (!itemPanel.DetailArea.Contains(menuItems)) { itemPanel.DetailArea.Controls.Add(menuItems); menuItems.Show(); } itemPanel.Show(); } }
0
6. Example
Project: DFAssist
Source File: MainForm.cs
Source File: MainForm.cs
private void notifyIcon_MouseDoubleClick(object sender, MouseEventArgs e) { Show(); }
0
7. Example
Project: DFAssist
Source File: MainForm.cs
Source File: MainForm.cs
private void toolStripMenuItem_Open_Click(object sender, EventArgs e) { Show(); }
0
8. Example
Project: MapleShark
Source File: DragForm.cs
Source File: DragForm.cs
public virtual void Show(bool bActivate) { if (bActivate) Show(); else NativeMethods.ShowWindow(Handle, (int)Win32.ShowWindowStyles.SW_SHOWNOACTIVATE); }
0
9. Example
Project: dp2
Source File: FloatingMessageForm.cs
Source File: FloatingMessageForm.cs
private void Parent_Activated(object sender, EventArgs e) { if (this.AutoHide) { try { this.Show(); } catch { } } }
0
10. Example
Project: dockpanelsuite
Source File: MainForm.cs
Source File: MainForm.cs
private void menuItemNewWindow_Click(object sender, System.EventArgs e) { MainForm newWindow = new MainForm(); newWindow.Text = newWindow.Text + " - New"; newWindow.Show(); }
0
11. Example
Project: DotSpatial
Source File: SpatialDockManager.cs
Source File: SpatialDockManager.cs
public void ResetLayout() { foreach (var tabPage in _allTabs) { tabPage.Value.Show(); } }
0
12. Example
Project: WsdlUI
Source File: AbstractCompletionWindow.cs
Source File: AbstractCompletionWindow.cs
protected void ShowCompletionWindow() { Owner = parentForm; Enabled = true; this.Show(); control.Focus(); if (parentForm != null) { parentForm.LocationChanged += new EventHandler(this.ParentFormLocationChanged); } control.ActiveTextAreaControl.VScrollBar.ValueChanged += new EventHandler(ParentFormLocationChanged); control.ActiveTextAreaControl.HScrollBar.ValueChanged += new EventHandler(ParentFormLocationChanged); control.ActiveTextAreaControl.TextArea.DoProcessDialogKey += new DialogKeyProcessor(ProcessTextAreaKey); control.ActiveTextAreaControl.Caret.PositionChanged += new EventHandler(CaretOffsetChanged); control.ActiveTextAreaControl.TextArea.LostFocus += new EventHandler(this.TextEditorLostFocus); control.Resize += new EventHandler(ParentFormLocationChanged); foreach (Control c in Controls) { c.MouseMove += ControlMouseMove; } }
0
13. Example
Project: WsdlUI
Source File: DeclarationViewWindow.cs
Source File: DeclarationViewWindow.cs
public void ShowDeclarationViewWindow() { Show(); }
0
14. Example
Project: DropboxBusinessAdminTool
Source File: DataMigrationView.cs
Source File: DataMigrationView.cs
public void ShowView() { this.Show(); }
0
15. Example
Project: DropboxBusinessAdminTool
Source File: DevicesView.cs
Source File: DevicesView.cs
public void ShowView() { this.Show(); }
0
16. Example
Project: DropboxBusinessAdminTool
Source File: DumpUserContentView.cs
Source File: DumpUserContentView.cs
public void ShowView() { this.Show(); }
0
17. Example
Project: DropboxBusinessAdminTool
Source File: GroupsView.cs
Source File: GroupsView.cs
public void ShowView() { this.Show(); }
0
18. Example
Project: DropboxBusinessAdminTool
Source File: LegalView.cs
Source File: LegalView.cs
public void ShowView() { this.Show(); }
0
19. Example
Project: DropboxBusinessAdminTool
Source File: MainView.cs
Source File: MainView.cs
public void ShowView() { this.Show(); }
0
20. Example
Project: DropboxBusinessAdminTool
Source File: PaperView.cs
Source File: PaperView.cs
public void ShowView() { this.Show(); }
0
21. Example
Project: DropboxBusinessAdminTool
Source File: ProvisioningView.cs
Source File: ProvisioningView.cs
public void ShowView() { this.Show(); }
0
22. Example
Project: DropboxBusinessAdminTool
Source File: TeamAuditingView.cs
Source File: TeamAuditingView.cs
public void ShowView() { this.Show(); }
0
23. Example
Project: DropboxBusinessAdminTool
Source File: TeamFoldersView.cs
Source File: TeamFoldersView.cs
public void ShowView() { this.Show(); }
0
24. Example
Project: DropboxBusinessAdminTool
Source File: TeamHealthView.cs
Source File: TeamHealthView.cs
public void ShowView() { this.Show(); }
0
25. Example
Project: DropboxBusinessAdminTool
Source File: TextSearchView.cs
Source File: TextSearchView.cs
public void ShowView() { this.Show(); }
0
26. Example
Project: sharpshell
Source File: ShellView.cs
Source File: ShellView.cs
void MSDNMagazine.Shell.HelperItems.IShellView.CreateViewWindow( IntPtr psvPrevious, ref MSDNMagazine.Shell.HelperItems.FOLDERSETTINGS pfs, MSDNMagazine.Shell.HelperItems.IShellBrowser psb, ref MSDNMagazine.Shell.HelperItems.RECT prcView, ref IntPtr phWnd) { this.m_folderSettings.ViewMode = pfs.ViewMode; this.m_folderSettings.fFlags = pfs.fFlags; this.m_form = this.m_mc.m_form; IntPtr hwnd = IntPtr.Zero; this.m_shell = psb; this.m_shell.GetWindow(out hwnd); ShellFolder.SetParent(m_form.Handle, hwnd); phWnd = m_form.Handle; int w = prcView.right - prcView.left; int h = prcView.bottom - prcView.top; ShellFolder.SetWindowLong( m_form.Handle, -16, 0x40000000 ); ShellFolder.SetWindowPos( m_form.Handle, 0, 0, 0, w, h, 0x0017 ); m_form.Location = new System.Drawing.Point(prcView.left, prcView.top); m_form.Size = new System.Drawing.Size(prcView.right - prcView.left, prcView.bottom - prcView.top); m_form.Show(); MSDNMagazine.Shell.HelperItems.HookStuff.SetFocus( hwnd ); // CWPRETSTRUCT this.m_hhook = MSDNMagazine.Shell.HelperItems.HookStuff.SetWindowsHookEx( 12, this.h, IntPtr.Zero, MSDNMagazine.Shell.HelperItems.HookStuff.GetCurrentThreadId() ); }
0
27. Example
Project: HourBoostr
Source File: mainForm.cs
Source File: mainForm.cs
private void AppNotifyIcon_Click(object sender, EventArgs e) { Show(); }
0
28. Example
Project: SteamAuthenticator
Source File: Form1.cs
Source File: Form1.cs
private void notifyIcon_MouseClick(object sender, MouseEventArgs e) { if(e.Button == MouseButtons.Left) { if (WindowState == FormWindowState.Minimized) { WindowState = FormWindowState.Normal; ShowInTaskbar = true; Show(); } } }
0
29. Example
Project: CSVAnalyzerPro
Source File: CusDGV.cs
Source File: CusDGV.cs
private void ShowScrollBars(object sender, EventArgs e) { if (!VerticalScrollBar.Visible || !HorizontalScrollBar.Visible) { int width = VerticalScrollBar.Width; VerticalScrollBar.Location = new Point(ClientRectangle.Width - width - BORDERWIDTH, CAPTIONHEIGHT); VerticalScrollBar.Size = new Size(width, ClientRectangle.Height - CAPTIONHEIGHT - BORDERWIDTH); VerticalScrollBar.Show(); //int hHeight = HorizontalScrollBar.Height; //int hWidth = HorizontalScrollBar.Width; //HorizontalScrollBar.Location = new Point(0, ClientRectangle.Height - hWidth); // HorizontalScrollBar.Size = new Size(hWidth,hHeight); //HorizontalScrollBar.Show(); } }
0
30. Example
Project: FTPbox
Source File: fMain.cs
Source File: fMain.cs
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { Show(); tabControl1.SelectedTab = tabAbout; }
0
31. Example
Project: fuckshadows-windows
Source File: ConfigForm.cs
Source File: ConfigForm.cs
private void ShowWindow() { this.Opacity = 1; this.Show(); IPTextBox.Focus(); }
0
32. Example
Project: gitextensions
Source File: FormSplash.cs
Source File: FormSplash.cs
public static void ShowSplash() { instance = new FormSplash(); instance.Show(); }
0
33. Example
Project: google-drive-proxy
Source File: FeedbackForm.cs
Source File: FeedbackForm.cs
public static void Init() { try { if (_Instance == null) { _Instance = new FeedbackForm(); _Instance.Show(); } } catch (Exception exception) { Log.Error(exception, false); } }
0
34. Example
Project: google-drive-proxy
Source File: StatusForm.cs
Source File: StatusForm.cs
public static void Init() { try { if (_Instance == null) { _Instance = new StatusForm(); _Instance.Show(); } } catch (Exception exception) { Log.Error(exception, false); } }
0
35. Example
Project: 2D-isometricEditor
Source File: FormEditor_EventArgs.cs
Source File: FormEditor_EventArgs.cs
private void bLoad_Click(object sender, EventArgs e) { Form fileExplorer = new FormFileExplorer(); fileExplorer.Show(); //inputLB = new LockBitmap(new Bitmap("../input/test_256x256.png"), false); //inputLB = new LockBitmap(new Bitmap("../input/test_512x512.png"), false); //render(true); //timer1.Enabled = true; }
0
36. Example
Project: IceChat
Source File: FormMain.cs
Source File: FormMain.cs
private void restoreToolStripMenuItem_Click(object sender, EventArgs e) { iceChatOptions.IsOnTray = false; this.Show(); this.notifyIcon.Visible = iceChatOptions.ShowSytemTrayIcon; }
0
37. Example
Project: FindUnusedFiles
Source File: FormMain.cs
Source File: FormMain.cs
void AboutToolStripMenuItemClick(object sender, EventArgs e) { Form about = new AboutBox(); about.Show(); }
0
38. Example
Project: FindUnusedFiles
Source File: FormMain.cs
Source File: FormMain.cs
void AboutToolStripMenuItemClick(object sender, EventArgs e) { Form about = new AboutBox(); about.Show(); }
0
39. Example
Project: sprite
Source File: FormMain.cs
Source File: FormMain.cs
private void AddPictureBox(Image img, int left, int top) { PictureBox pb = new PictureBox(); pb.Image = img; pb.Location = new System.Drawing.Point(left, top); pb.Cursor = Cursors.SizeAll; pb.BorderStyle =BorderStyle.FixedSingle ; pb.Name = "pb_" + left + "_" + top; pb.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; pb.Click += pb_Click; pb.MouseDown += pb_MouseDown; pb.MouseMove += pb_MouseMove; pb.MouseUp += pb_MouseUp; //pb.Paint += pb_Paint; panelImages.Controls.Add(pb); pb.Show(); }
0
40. Example
Project: revit
Source File: CurtainForm.cs
Source File: CurtainForm.cs
void m_document_SystemData_CurtainSystemChanged() { // clear the out-of-date values /n ..... /n //View Source file for more details /n }
0
41. Example
Project: NBTExplorer
Source File: MainForm.cs
Source File: MainForm.cs
private void replaceToolStripMenuItem_Click (object sender, EventArgs e) { Form form = new FindReplace(this, _controller, _nodeTree.SelectedNode.Tag as DataNode); form.Show(); }
0
42. Example
Project: Pyramid
Source File: AbstractCompletionWindow.cs
Source File: AbstractCompletionWindow.cs
protected void ShowCompletionWindow() { Owner = parentForm; Enabled = true; this.Show(); control.Focus(); if (parentForm != null) { parentForm.LocationChanged += new EventHandler(this.ParentFormLocationChanged); } control.ActiveTextAreaControl.VScrollBar.ValueChanged += new EventHandler(ParentFormLocationChanged); control.ActiveTextAreaControl.HScrollBar.ValueChanged += new EventHandler(ParentFormLocationChanged); control.ActiveTextAreaControl.TextArea.DoProcessDialogKey += new DialogKeyProcessor(ProcessTextAreaKey); control.ActiveTextAreaControl.Caret.PositionChanged += new EventHandler(CaretOffsetChanged); control.ActiveTextAreaControl.TextArea.LostFocus += new EventHandler(this.TextEditorLostFocus); control.Resize += new EventHandler(ParentFormLocationChanged); foreach (Control c in Controls) { c.MouseMove += ControlMouseMove; } }
0
43. Example
Project: Pyramid
Source File: DeclarationViewWindow.cs
Source File: DeclarationViewWindow.cs
public void ShowDeclarationViewWindow() { Show(); }
0
44. Example
Project: SteamDesktopAuthenticator
Source File: MainForm.cs
Source File: MainForm.cs
private void trayRestore_Click(object sender, EventArgs e) { this.Show(); this.WindowState = FormWindowState.Normal; }
0
45. Example
Project: superputty
Source File: ImageListPopup.cs
Source File: ImageListPopup.cs
public void Show(int x, int y) { this.Left = x; this.Top = y; base.Show(); }
0
46. Example
Project: JNSoundboard
Source File: MainForm.cs
Source File: MainForm.cs
private void notifyIcon1_MouseClick(object sender, MouseEventArgs e) { notifyIcon1.Visible = false; //show form and give focus this.WindowState = FormWindowState.Minimized; this.Show(); this.WindowState = FormWindowState.Normal; }
0
47. Example
Project: lua-tilde
Source File: DragForm.cs
Source File: DragForm.cs
public virtual void Show(bool bActivate) { if (bActivate) Show(); else NativeMethods.ShowWindow(Handle, (int)Win32.ShowWindowStyles.SW_SHOWNOACTIVATE); }
0
48. Example
Project: NLog
Source File: RichTextBoxTargetTests.cs
Source File: RichTextBoxTargetTests.cs
[Test] public void ActiveFormNegativeTest1() { RichTextBoxTarget target = new RichTextBoxTarget() { FormName = "MyForm1", ControlName = "Control1", UseDefaultRowColoringRules = true, Layout = "${level} ${logger} ${message}", ToolWindow = false, Width = 300, Height = 200, }; using (Form form = new Form()) { form.Name = "MyForm1"; form.WindowState = FormWindowState.Minimized; //RichTextBox rtb = new RichTextBox(); //rtb.Dock = DockStyle.Fill; //rtb.Name = "Control1"; //form.Controls.Add(rtb); form.Show(); try { target.Initialize(null); Assert.Fail("Expected exception."); } catch (NLogConfigurationException ex) { Assert.AreEqual("Rich text box control 'Control1' cannot be found on form 'MyForm1'.", ex.Message); } } }
0
49. Example
Project: NLog
Source File: RichTextBoxTargetTests.cs
Source File: RichTextBoxTargetTests.cs
[Test] public void ActiveFormNegativeTest2() { RichTextBoxTarget target = new RichTextBoxTarget() { FormName = "MyForm1", UseDefaultRowColoringRules = true, Layout = "${level} ${logger} ${message}", }; using (Form form = new Form()) { form.Name = "MyForm1"; form.WindowState = FormWindowState.Minimized; form.Show(); try { target.Initialize(null); Assert.Fail("Expected exception."); } catch (NLogConfigurationException ex) { Assert.AreEqual("Rich text box control name must be specified for RichTextBoxTarget.", ex.Message); } } }
0
50. Example
Project: openvpn-manager
Source File: FrmGlobalStatus.cs
Source File: FrmGlobalStatus.cs
private void statusToolStripMenuItem_Click(object sender, EventArgs e) { Show(); }