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

101. Example

Project: RNGReporter
Source File: Researcher.cs
private void Researcher_FormClosing(object sender, FormClosingEventArgs e)
        {
            Hide();
        }

102. Example

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

103. Example

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

104. 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);
            }
        }

105. 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();
            }
        }

106. Example

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

107. Example

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

108. Example

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

109. Example

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

110. Example

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

111. Example

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

112. Example

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

113. Example

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

114. Example

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

115. Example

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

116. Example

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

117. Example

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

118. Example

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

119. Example

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

120. Example

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

121. 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();
            }
        }

122. 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();
            }
        }

123. Example

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

124. Example

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

125. Example

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

126. Example

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

127. Example

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

128. Example

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

129. Example

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

130. Example

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

131. Example

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

132. Example

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

133. Example

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

134. Example

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

135. Example

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

136. Example

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

137. Example

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

138. Example

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

139. 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;
        }

140. Example

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

141. 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();
		}

142. 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 }

143. Example

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

144. Example

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

145. Example

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

146. 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;
            }
        }

147. 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;
            }
        }

148. Example

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

149. Example

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

150. 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();
            }
        }