hi everyone

pleas i want to know the way how i can clear a particular line in multiline textbox

i ant to know how to do that

thanks 4 all

read the complete text into a array,clear the textbox, then loop trough this array and if not the search condition is true then append the array item to the textbox.

dim tmpArray() as string = textbox1.text.split(vbnewline)
textbox1.Text =""
for each _substring as string in tmpArray
if NOT _substring = searchCondition then
Textbox1.AppendText(_substring & vbnewline)
end if
Next
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.