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;

}