/// <summary> /// 设置活动控件背景高亮 /// </summary> private void m_mthSetControlHighLight() { com.digitalwave.controls.ctlHighLightFocus objHighLight = new com.digitalwave.controls.ctlHighLightFocus(Color.Moccasin); objHighLight.m_mthAddControlInContainer(this); if (this.HasChildren) { foreach (System.Windows.Forms.Control currentCtl in this.Controls) { if (currentCtl is System.Windows.Forms.TextBoxBase) { currentCtl.GotFocus += new EventHandler(currentCtl_GotFocus); } } } }
/// <summary> /// 设置控件活动时高亮显示 /// </summary> /// <param name="p_ctlParent"></param> /// <param name="p_clrHightLight"></param> internal void m_mthSetControlHighLight(Control p_ctlParent, System.Drawing.Color p_clrHightLight) { com.digitalwave.controls.ctlHighLightFocus objHighLight = new com.digitalwave.controls.ctlHighLightFocus(p_clrHightLight); objHighLight.m_mthAddControlInContainer(p_ctlParent); }