• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.ControlEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.ControlEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ControlEventArgs类的具体用法?C# ControlEventArgs怎么用?C# ControlEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ControlEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了ControlEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: OnControlAdded

        /// <summary>
        /// Handler for drop event.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnControlAdded(ControlEventArgs e)
        {
            this.SetFont(e.Control, this._controlsFont);

            if (e.Control is NotenizerAdvancedLabel)
                (e.Control as NotenizerAdvancedLabel).ResetToolTip();

            base.OnControlAdded(e);
        }
开发者ID:nemcek,项目名称:notenizer,代码行数:13,代码来源:AdvancedFlowLayoutPanel.cs


示例17: OnControlRemoved

 protected override void OnControlRemoved(ControlEventArgs e)
 {
     LockScreenWidget widget = e.Control as LockScreenWidget;
     if(widget != null)
     {
         widget.LockScreen = null;
     }
     base.OnControlRemoved(e);
 }
开发者ID:Danielku15,项目名称:WeTabLock,代码行数:9,代码来源:LockScreenControl.cs


示例18: OnControlAdded

 /// <summary>
 /// 
 /// </summary>
 /// <param name="e"></param>
 protected override void OnControlAdded(ControlEventArgs e)
 {
     try
     {
         e.Control.BackColor = System.Drawing.Color.Transparent;
     }
     catch { }
     base.OnControlAdded(e);
 }
开发者ID:KunHsiang,项目名称:ischedule,代码行数:13,代码来源:BaseForm.cs


示例19: OnControlAdded

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

            e.Control.GotFocus += new EventHandler(Control_GotFocus);
            e.Control.LostFocus += new EventHandler(Control_LostFocus);
            e.Control.MouseEnter += new EventHandler(Control_MouseEnter);
            e.Control.MouseLeave += new EventHandler(Control_MouseLeave);
        }
开发者ID:fredrikdev,项目名称:CamTimer,代码行数:9,代码来源:MousePanel.cs


示例20: mainTabs_ControlAdded

        private void mainTabs_ControlAdded(object sender, ControlEventArgs e)
        {
            if (e.Control is TabPage)
            {
                TabPage tabPage = e.Control as TabPage;
                tabPage.ControlAdded += TabPage_ControlAdded;

                RaiseLoadedEvent(tabPage);
            }
        }
开发者ID:fcorreal-gr,项目名称:Encompass.UiJack,代码行数:10,代码来源:UiJackMain.cs



注:本文中的System.Windows.Forms.ControlEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.ConvertEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Forms.Control类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap