I'm using vb6 and the richedit 2.0 control. I want to be able to quickly get the number of characters in the control. (other than using len(textrtf) which is waaaay to slow) I know that there is a user defined message for the control (EM_GETTEXTLENGTHEX), that i found in msdn. This message takes a c structure as one of its parameters, i set all this up from the information in richedit.h but i don't think the data types are compatible. Has anyone used this message in vb before, or has another way to get this information?