borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (using timegettime api in VB)Next Topic (CreateEvent?) New Topic New Poll Post Reply
AndreaVB Forum : API : EM_SETTEXTMODE not working
Poster Message
ot1
Level: Protégé

Registered: 28-07-2005
Posts: 5

icon EM_SETTEXTMODE not working

Using SendMessageLong, i am unable to change EM_SETTEXTMODE(WM_USER+89) on a RichTextbox (RICHTX32.OCX vb6.0 SP4, 6.0.88.04) to any value. It always returns 38 when using SendMessage with EM_GETTEXTMODE(WM_USER+90).

BTW...
The RichEditBox was previously cleared using
SendMessage Me.RichTextBox1.hwnd, WM_SETTEXT, 0, 0


Any ideas?





[Edited by ot1 on 20-01-2006 at 10:32 PM GMT]

04-12-2005 at 03:06 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: EM_SETTEXTMODE not working

Hi,
Make sure the textbox is empty before calling this:
Google'd and found this msdn article
Hope this helps,
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

15-01-2006 at 01:52 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : EM_SETTEXTMODE not working
Previous Topic (using timegettime api in VB)Next Topic (CreateEvent?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder