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
70
Can't enable multiline UltraTextEditor
posted

  I have a problem with an UltraTextEditor, but I can't figure out what the problem is.. I start with it disabled, and the when the user click Update, all the controls on the form get enabled, including the UltraTextEditor. The problem is that this mechanism works fine if the Editor is not set up as multiline. When I try set up Multiline = true, the editor becomes disabled no matter what I do. 

    It's kinda like this:

editor.Enabled = false;

editor.multiline = true;

 

Then when I hit Update, I change the properties like this:

if(editor.Multiline)

editor.ReadOnly = not editor.Enabled;

  What could be wrong? Thanks

Parents
No Data
Reply
  • 69832
    Offline posted

    The likeliest explanation is that the Enabled property is being inadvertantly set to false. You can handle the EnabledChanged event and put a breakpoint in the handler to easily debug changes to the property value, or if you like you can post a simple sample here and we can take a look and let you know why.

Children