當前位置: 首頁>>代碼示例>>C#>>正文


C# Forms.ControlEventArgs類代碼示例

本文整理匯總了C#中System.Windows.Forms.ControlEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# ControlEventArgs類的具體用法?C# ControlEventArgs怎麽用?C# ControlEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ControlEventArgs類屬於System.Windows.Forms命名空間,在下文中一共展示了ControlEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: OnControlRemoved

 protected override void OnControlRemoved(ControlEventArgs e)
 {
     base.OnControlRemoved(e);
     if (_previewHandler != null)
     {
         _previewHandler.Unload();
         _previewHandler = null;
     }
 }
開發者ID:notsonormal,項目名稱:AstoundingDock,代碼行數:9,代碼來源:PreviewerControl.cs

示例2: OnControlAdded

 protected override void OnControlAdded(ControlEventArgs e)
 {
     var tabPage = e.Control as TabPage;
     if (tabPage != null)
         tabPage.BackColor = Color.White;
     base.OnControlAdded(e);
 }
開發者ID:cocopuffs1236,項目名稱:TanjiMimic,代碼行數:7,代碼來源:TTabControl.cs

示例3: layoutControlUC_ControlAdded

 void layoutControlUC_ControlAdded(object sender, ControlEventArgs e)
 {
     if (e.Control is IMainView)
     {
         (e.Control as IMainView).InitializeControls();
     }
 }
開發者ID:temeliev,項目名稱:SmartCRM,代碼行數:7,代碼來源:RF_Main.cs

示例4: pAccounts_ControlRemoved

        private void pAccounts_ControlRemoved(object sender, ControlEventArgs e)
        {
            System.Windows.Forms.Control.ControlCollection allAccounts = pAccounts.Controls;

            foreach (Control control in allAccounts)
            {
                ((AccountListItem)control).cbTransferToAccount.Items.Clear();
                ((AccountListItem)control).cbTransferToAccount.Items.Add("");
            }

            int position = 0;

            foreach (Control control in allAccounts)
            {
                AccountListItem accountDetailsControl = (AccountListItem)control;
                control.Location = new Point(0, position);
                foreach (Control control1 in allAccounts)
                {
                    AccountListItem accountDetailsControl1 = (AccountListItem)control1;
                    if (!accountDetailsControl1.Equals(accountDetailsControl))
                    {
                        accountDetailsControl1.Invoke((Action)(delegate
                        {
                            accountDetailsControl1.cbTransferToAccount.Items.Add(accountDetailsControl.Account.Login);
                        }));
                        accountDetailsControl1.Refresh();
                    }
                }
                position += 22;
            }
        }
開發者ID:wrobeseb,項目名稱:parRobot,代碼行數:31,代碼來源:AccountList.cs

示例5: OnControlAdded

 protected override void OnControlAdded(ControlEventArgs e) {
     base.OnControlAdded(e);
     if(e.Control is UserControl) {
         AcceptButton = Find(e.Control, (btn) => btn.Text == "OK");
         CancelButton = Find(e.Control, (btn) => btn.Text == "Cancel");
     }
 }
開發者ID:sethjuarez,項目名稱:DevAV,代碼行數:7,代碼來源:FilterForm.cs

示例6: OnControlRemoved

        protected override void OnControlRemoved(ControlEventArgs e)
        {
            if (current.Equals(e.Control.Name))
                current = String.Empty; 

            base.OnControlRemoved(e);
        }
開發者ID:wshanshan,項目名稱:DDD,代碼行數:7,代碼來源:CardLayoutPanel.cs

示例7: OnControlAdded

        protected override void OnControlAdded(ControlEventArgs e)
        {
            base.OnControlAdded(e);

            if (!this.DesignMode)
            {
                if (e.Control != null)
                {
                    Control c = e.Control;
                    if (!(c is IHighlightControl))
                    {
                        //throw new Exception("Control needs to be an IHighlightControl");
                    }

                    c.Click += new EventHandler(c_Click);
                    if (c is IHighlightControl)
                    {
                        c.MouseMove += new MouseEventHandler(c_MouseMove);
                        c.MouseLeave += new EventHandler(c_MouseLeave);
                    }

                    int index = this.Controls.IndexOf(c);
                    Size s = c.Size;
                    c.Location = new Point(0, (s.Height * index) + (Offset.Height * index));
                }
            }
        }
開發者ID:XxRaPiDK3LLERxX,項目名稱:nucleuscoop,代碼行數:27,代碼來源:ControlListBox.cs

示例8: TabPage_ControlAdded

        private void TabPage_ControlAdded(object sender, ControlEventArgs e)
        {

            TabPage tab = sender as TabPage;
            RaiseLoadedEvent(tab);

        }
開發者ID:fcorreal-gr,項目名稱:Encompass.UiJack,代碼行數:7,代碼來源:UiJackMain.cs

示例9: OnControlRemoved

 protected override void OnControlRemoved(ControlEventArgs e)
 {
     base.OnControlRemoved(e);
     if (isAccept)
     {
         PLMessageBoxExt.ShowNotificationMessage("Để nhận được kết quả sau khi cài bổ trợ.\nVui lòng khởi động lại chương trình.", true);
     }
 }
開發者ID:khanhdtn,項目名稱:my-fw-win,代碼行數:8,代碼來源:PluginManagerOption.cs

示例10: OnControlAdded

		protected override void OnControlAdded(ControlEventArgs e)
		{
			base.OnControlAdded(e);
			if (Tools.IsRunningOnMono)
			{
				ApplyMonoStyle(e.Control);
			}
		}
開發者ID:kwedr,項目名稱:acdown,代碼行數:8,代碼來源:FormBase.cs

示例11: mainTabs_ControlRemoved

 private void mainTabs_ControlRemoved(object sender, ControlEventArgs e)
 {
     if (e.Control is TabPage)
     {
         TabPage tabPage = e.Control as TabPage;
         tabPage.ControlAdded -= TabPage_ControlAdded;
     }
 }
開發者ID:fcorreal-gr,項目名稱:Encompass.UiJack,代碼行數:8,代碼來源:UiJackMain.cs

示例12: OnControlAdded

 protected override void OnControlAdded(ControlEventArgs e)
 {
     base.OnControlAdded(e);
     NoBorderTabPage page = e.Control as NoBorderTabPage;
     if (page != null && !tabs.TabPages.Contains(page.Page)) {
         pages.Add(page);
     }
 }
開發者ID:ic014308,項目名稱:xml-notepad-for-mono,代碼行數:8,代碼來源:NoBorderTabControl.cs

示例13: OnControlAdded

		protected override void OnControlAdded(ControlEventArgs e) {

			if (e.Control is ControlPanelTaskLink) {
				(e.Control as ControlPanelTaskLink).NormalColor = _renderer.GetColor(ColorProperty.TextColor);
			}
			
			base.OnControlAdded(e);
		}
開發者ID:snowmizuh,項目名稱:Shellscape.Common,代碼行數:8,代碼來源:ControlPanelTaskPanel.cs

示例14: OnControlAdded

        protected override void OnControlAdded(ControlEventArgs e)
        {
            e.Control.Dock = DockStyle.Fill;
            e.Control.Visible = false;
            //Current = e.Control.Name;   

            base.OnControlAdded(e);
        }
開發者ID:wshanshan,項目名稱:DDD,代碼行數:8,代碼來源:CardLayoutPanel.cs

示例15: OnControlAdded

        protected override void OnControlAdded(ControlEventArgs e)
        {
            base.OnControlAdded(e);

            var radioButton = e.Control as RadioButton;
            if (radioButton != null)
                radioButton.CheckedChanged += radioButton_CheckedChanged;
        }
開發者ID:Badaro,項目名稱:Otamangle,代碼行數:8,代碼來源:RadioGroup.cs


注:本文中的System.Windows.Forms.ControlEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。