Results 1 to 2 of 2

Thread: Clearing text from a richtextbox from another process

Hybrid View

  1. #1

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729

    Clearing text from a richtextbox from another process

    Hello. I want to clean the contents from a richtextbox from another program(wordpad, for example), one which I do not control. I tried using EM_SETTEXTEX but it will only crash wordpad. I've read somewhere that you cannot use this message across processes. Is it true? If yes, which other methods could I follow to do what I need?

    Thanks!
    \m/\m/

  2. #2
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Clearing text from a richtextbox from another process

    Hai PT
    WM_SETTEXT WORKS
    Try this...

    Code:
    Sendmessage hwnd,WM_SETTEXT,0,vbnullstring

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width