...

View Full Version : How to remove specific line in a multiline text box using visual basic



vbBlurry
11-21-2002, 08:30 AM
Hi..!
How to remove specific line in a multiline text box using visual basic?

Thanks..hope anyone can help..

Roelf
11-21-2002, 09:55 AM
afaik this cannot be done. a textbox doesnt keep the individual lines in a collection-type-property of the textbox-object, it stores the text as one string-object in the .Text property. If you change the size of the box, the words are divided over the lines differently, that should give you this hint. What you can do is scan the text-property of the box for the part to delete (maybe between two vbCrīs), and then alter the text that way, but that would have to be a rather fuzzy search



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum