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
40
UltraTextEditor - how to preprocess the paste menu action
posted

When a text is pasted into the UltraTextEditor, I would like to preprocess that - look into the clipboard contents for specific stuff and then decide on the contents to be pasted. With normal windows forms textbox, I can override WndProc method, process the WM_PASTE (0x302) message. But with the UltraTextEditor I'm not getting the message - 0x302. Is there any way I can achieve this?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

        When an UltraTextEditor control goes into edit mode, it displays a derived TextBox control over itself to allow the user to edit. So what I would recommend is that you use the ControlAdded and ControlRemoved events to trap this TextBox control and then you can do what you want with it. 

        Another option would be to use the KeyDown event.  

Children