System.Windows.Forms.Control.Hide()

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

200 Examples 7

151. Example

Project: RNGReporter
Source File: RoamerMap.cs
private void RoamerMap_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
            Hide();
        }

152. Example

Project: Krypton
Source File: ControlObscurer.cs
public void Uncover()
        {
            if (_obscurer != null)
                _obscurer.Hide();
        }

153. Example

Project: Krypton
Source File: ViewDrawScrollBar.cs
private void CreateScrollBar(Control parent)
        {
            // Do we need to create a scrollbar?
            if (_scrollBar == null)
            {
                // Create the correct type of control
                if (Vertical)
                    _scrollBar = new VScrollBar();
                else
                    _scrollBar = new HScrollBar();

                // Hook into scroll position changes
                _scrollBar.Scroll += new ScrollEventHandler(OnScrollBarChange);

                // Create it hidden
                _scrollBar.Hide();
                
                // Set the scrolling values
                _scrollBar.Minimum = _min;
                _scrollBar.Maximum = _max;
                _scrollBar.SmallChange = _smallChange;
                _scrollBar.LargeChange = _largeChange;
                _scrollBar.Value = _offset;

                // Add our new control to the provided parent collection
                CommonHelper.AddControlToParent(parent, _scrollBar);
            }
        }

154. Example

Project: meridian59-dotnet
Source File: AddFrameSetIndexForm.cs
protected void OnOK_Click(object sender, EventArgs e)
        {
            Hide();

            // add selected frame
            if (cbFrames.SelectedItem != null &&
                cbFrames.SelectedItem is BgfBitmap &&
                Program.CurrentFile.FrameSets.Count > CurrentFrameSetIndex)
            {
                Program.CurrentFile.FrameSets[CurrentFrameSetIndex].FrameIndices.Add(cbFrames.SelectedIndex);

                Program.MainForm.UpdateFrameNums();
                Program.MainForm.UpdateFrameSetFlow();
            }
        }

155. Example

Project: meridian59-dotnet
Source File: AddFrameSetIndexForm.cs
protected override void OnClosing(CancelEventArgs e)
        {
            e.Cancel = true;
            Hide();
        }

156. Example

Project: meridian59-dotnet
Source File: SettingsForm.cs
protected override void OnClosing(CancelEventArgs e)
        {
            // cancel close and hide instead
            e.Cancel = true;
            Hide();
        }

157. Example

Project: meridian59-dotnet
Source File: SettingsForm.cs
protected void btnOK_Click(object sender, EventArgs e)
        {           
            Hide();
        }

158. Example

Project: EZLib
Source File: loginForm.cs
private void buttonRegister_Click(object sender, System.EventArgs e)
        {
            Hide();
            using (var registerForm = new registerForm())
            {
                registerForm.ShowDialog();
            }
        }

159. Example

Project: EZLib
Source File: registerForm.cs
private void buttonLogin_Click(object sender, EventArgs e)
        {
            Hide();
            using (var loginForm = new loginForm())
            {
                loginForm.ShowDialog();
            }
        }

160. Example

Project: DFAssist
Source File: MainForm.cs
private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                e.Cancel = true;
                Hide();
            }
        }

161. Example

Project: MapleShark
Source File: FindReplace.cs
private void FindReplace_Closing(object sender,
                                         CancelEventArgs e)
        {
            e.Cancel = true;
            Hide();
        }

162. Example

Project: MapleShark
Source File: FindReplace.cs
private void btnClose_Click(object sender, EventArgs e)
        {
            mOwner.Focus();
            Hide();
        }

163. Example

Project: dp2
Source File: FloatingMessageForm.cs
private void Parent_Deactivate(object sender, EventArgs e)
        {
            if (this.AutoHide)
            {
                try
                {
                    this.Hide();
                }
                catch
                {
                }
            }
        }

164. Example

Project: NSMB-Editor
Source File: LevelMinimap.cs
private void onFormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
            Hide();
        }

165. Example

Project: NSMB-Editor
Source File: SpriteEvents.cs
private void SpriteEvents_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
            Hide();
        }

166. Example

Project: NSMB-Editor
Source File: ToolsForm.cs
private void ToolsForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
            Hide();
        }

167. Example

Project: Snip
Source File: Snip.cs
private void Snip_Load(object sender, EventArgs e)
        {
            // Hide the window from ever showing.
            this.Hide();
        }

168. Example

Project: DotNetSiemensPLCToolBoxLibrary
Source File: SelectProjectPartForm.cs
private void cmdCancel_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

169. Example

Project: DotNetSiemensPLCToolBoxLibrary
Source File: SelectProjectPartMultiForm.cs
private void cmdCancel_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

170. Example

Project: DotSpatial
Source File: DownloadForm.cs
private void DownloadFormClosing(object sender, FormClosingEventArgs e)
        {
            // Hide form when closed by user
            if (e.CloseReason == CloseReason.UserClosing)
            {
                e.Cancel = true;
                Hide();
            }
        }

171. Example

Project: DotSpatial
Source File: ExtensionManagerForm.cs
private void ExtensionManagerFormClosing(object sender, FormClosingEventArgs e)
        {
            // hide the extension manager when closed by the user
            if (e.CloseReason == CloseReason.UserClosing)
            {
                e.Cancel = true;
                Hide();
            }
        }

172. Example

Project: DotSpatial
Source File: CoordinateDialog.cs
private void CloseButtonClick(object sender, EventArgs e)
        {
            Hide();
        }

173. Example

Project: DotSpatial
Source File: AddNewColum.cs
private void BtnCancelClick(object sender, EventArgs e)
        {
            Hide();
        }

174. Example

Project: DotSpatial
Source File: DeleteFieldsDialog.cs
private void BtnCancelClick(object sender, EventArgs e)
        {
            Hide();
        }

175. Example

Project: DotSpatial
Source File: RenameFieldDialog.cs
private void BtnCancelClick(object sender, EventArgs e)
        {
            Hide();
        }

176. Example

Project: DropboxBusinessAdminTool
Source File: DataMigrationView.cs
public void HideView()
        {
            this.Hide();
        }

177. Example

Project: DropboxBusinessAdminTool
Source File: DevicesView.cs
public void HideView()
        {
            this.Hide();
        }

178. Example

Project: DropboxBusinessAdminTool
Source File: DumpUserContentView.cs
public void HideView()
        {
            this.Hide();
        }

179. Example

Project: DropboxBusinessAdminTool
Source File: GroupsView.cs
public void HideView()
        {
            this.Hide();
        }

180. Example

Project: DropboxBusinessAdminTool
Source File: LegalView.cs
public void HideView()
        {
            this.Hide();
        }

181. Example

Project: DropboxBusinessAdminTool
Source File: MainView.cs
public void HideView()
        {
            this.Hide();
        }

182. Example

Project: DropboxBusinessAdminTool
Source File: PaperView.cs
public void HideView()
        {
            this.Hide();
        }

183. Example

Project: DropboxBusinessAdminTool
Source File: ProvisioningView.cs
public void HideView()
        {
            this.Hide();
        }

184. Example

Project: DropboxBusinessAdminTool
Source File: TeamAuditingView.cs
public void HideView()
		{
			this.Hide();
		}

185. Example

Project: DropboxBusinessAdminTool
Source File: TeamFoldersView.cs
public void HideView()
        {
            this.Hide();
        }

186. Example

Project: DropboxBusinessAdminTool
Source File: TeamHealthView.cs
public void HideView()
        {
            this.Hide();
        }

187. Example

Project: DropboxBusinessAdminTool
Source File: TextSearchView.cs
public void HideView()
        {
            this.Hide();
        }

188. Example

Project: sharpshell
Source File: SharpDeskBand.cs
int IDockingWindow.CloseDW(uint dwReserved)
        {
            //  Log key events.
            Log("IDockingWindow.CloseDW called.");

            //  Hide the band.
            lazyDeskBand.Value.Hide();

            //  Return success.
            return WinError.S_OK;
        }

189. Example

Project: playground
Source File: ConnectServerDialog.cs
private void btnCancel_Click(object sender, EventArgs e)
		{
			this.DialogResult = DialogResult.Cancel;
			this.Hide();
		}

190. Example

Project: playground
Source File: ConnectServerDialog.cs
private void btnOK_Click(object sender, EventArgs e)
		{
			_sharedConnection.Connect(tbAddress.Text, cbAutoRefresh.Checked, (int)nudInterval.Value);
			this.DialogResult = DialogResult.OK;
			this.Hide();
		}

191. Example

Project: uTorrent-Notifier
Source File: SettingsForm.cs
private void btnSave_Click(object sender, EventArgs e)
        {
            this.ClassRegistry.Conf/n ..... /n //View Source file for more details /n }

192. Example

Project: uTorrent-Notifier
Source File: SettingsForm.cs
private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

193. Example

Project: HourBoostr
Source File: gameForm.cs
private void gameForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
            Hide();
        }

194. Example

Project: HourBoostr
Source File: DonateForm.cs
private void picGoBack_Click(object sender, EventArgs e)
        {
            Hide();
        }

195. Example

Project: HourBoostr
Source File: mainForm.cs
private void PanelCardsStartedBtnHide_Click(object sender, EventArgs e)
        {
            if (_settings.Settings.HideToTraybar)
            {
                Hide();
                AppNotifyIcon.ShowBalloonTip(1000, "SingleBoostr", "I'm down here.", ToolTipIcon.Info);
            }
            else
            {
                WindowState = FormWindowState.Minimized;
            }
        }

196. Example

Project: HourBoostr
Source File: mainForm.cs
private void PanelIdleStartedBtnHide_Click(object sender, EventArgs e)
        {
            if (_settings.Settings.HideToTraybar)
            {
                Hide();
                AppNotifyIcon.ShowBalloonTip(1000, "SingleBoostr", "I'm down here.", ToolTipIcon.Info);
            }
            else
            {
                WindowState = FormWindowState.Minimized;
            }
        }

197. Example

Project: SteamBulkActivator
Source File: BrowserForm.cs
private void btn_Close_Click(object sender, EventArgs e)
        {
            Hide();
        }

198. Example

Project: SteamAuthenticator
Source File: ConfirmForm.cs
private void exitButton_Click(object sender, EventArgs e)
        {
            Hide();
        }

199. Example

Project: SteamAuthenticator
Source File: Form1.cs
private void miniButton_Click(object sender, EventArgs e)
        {
            /*Hide window*/
            WindowState = FormWindowState.Minimized;
            ShowInTaskbar = false;
            Hide();

            /*Hide other forms if they are visible*/
            if (confirmForm != null && confirmForm.Visible)
                confirmForm.Hide();

            if (notloadedForm != null && notloadedForm.Visible)
                notloadedForm.Hide();

            /*Show notifyicon notification if we've never done that before*/
            if (!Properties.Settings.Default.bMinimizedNotificationShown)
            {
                notifyIcon.ShowBalloonTip(600, "Steam Authenticator", "I'm still running down here!", ToolTipIcon.Info);
                Properties.Settings.Default.bMinimizedNotificationShown = true;
                Properties.Settings.Default.Save();
            }
        }

200. Example

Project: SteamAuthenticator
Source File: NotloadedForm.cs
private void btnClose_Click(object sender, EventArgs e)
        {
            Hide();
        }