Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Enable button right of win Texteditor control
posted

Hi,

I am using TextEditor control and I have set a button using button right property.

 Is there a way i can enable only the button on the texteditor when texteditor's enabled property is set to false. 

 I have tried the below code and it does not work. Appreciate a reply in this regard. Thanks!!! 

txtUserID.Enabled = false;

bool findButton = txtUserID.ButtonsRight.Exists("txtUserIDButton");

if (findButton)

{

     object edtButton = txtUserID.ButtonsRight.GetItem(0);

      ((Infragistics.Win.UltraWinEditors.EditorButtonBase)(edtButton)).Enabled = true;

}

 

 

 

Parents
  • 37774
    Verified Answer
    posted

     No, the Enabled property is on the base Control class, so nothing will receive focus when the control is disabled.  Instead, you could try setting the editor to ReadOnly, which should still allow you to use the button.

    -Matt

Reply Children
No Data