当前位置: 首页>>代码示例>>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;未经允许,请勿转载。