I need the length of an rtb, but I only want to deal with txt.

Right now the way my program's set up, if the user pastes rich text, they can then use a command that makes rtb = rtb.text and that works to remove the formatting, but I just downloaded a program from planet source code called Bobo Pad that has a rtb that works with text only and when you paste rich text into it, all you see is the txt, as if you'd pasted into notepad.

I'd like to save my users that extra step of having to unformat any rich text they may want to paste.

I've tried looking at the code, but can't figure out how it's done. Does anyone know how Bobo did it?

Here's the link to Bobo Pad at psc:

http://www.planet-source-code.com/vb...bo%5F343401485