Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21849

Clear Rich Edit content

$
0
0
Hi Guys!

Code:

    SendMessage hWndRichEd, EM_SETSEL, -1, -1
    SendMessage hWndRichEd, EM_GETSEL, VarPtr(lngSelStart), 0
    strLine = ""
    SendMessage hWndRichEd, EM_REPLACESEL, 0, StrPtr(strLine)

I have a rich edit control like this. But I am using it for first time. I couldn't manage how to clear everything in the box. Can anbody modify the code for me, please? Select everything and delete? Or replace with a null string? Whatever... I couldn't make select all :(

Thanks a lot!

Viewing all articles
Browse latest Browse all 21849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>