visual studio 2010 - Remove any line in rtb1 from rtb2 -


i have a2 richtext box first 1 called a1 second 1 b2 . both of them have texts

what im trying : delete line a2 has b2 if a2 contain lines first line = 1256 second 1 = 5678 ....etc want remove line in b2 contain lines in a2 1256 , 5678 ..etc

i tried use filter took long time because there alot of lines , didnt work

i tried solve problem reached this(it's not want may you) :

public class form1     dim checkchar, checkedchar string     dim checkednum integer = 1      private sub checkbut_click(byval sender system.object, byval e system.eventargs) handles checkbut.click         if not a1.text = ""             if a1.text.length > 2 reread:         if checkednum = 1                     checkchar = a1.text.remove(1)                 else                     checkchar = a1.text.substring(checkednum - 1)                     if not checkednum = a1.text.length                         checkchar = checkchar.remove(1)                     end if                 end if                 if checkchar.contains("" & vblf & "")                     checkedchar = a1.text.remove(checkednum - 1)                     checkchar = b2.find(checkedchar)                     if not checkchar = -1                         b2.text = b2.text.replace(checkedchar & ("" & vblf & ""), "")                     end if                 else                     a1.text.substring(checkednum - 1)                 end if                 if checkednum = a1.text.length                     checkednum = 1                 else                     checkednum = checkednum + 1                     goto reread                 end if             end if         end if      end sub end class 

i hope code useful you


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -