[ BackoSoft @ 23.02.2012. 00:50 ] @
Kako da ovaj kod stavim u While petlju.


Code:
 If startindex >= 0 Then

            RichTextBox1.SelectionColor = Color.Red

            Dim endindex As Integer = "<td><p>".Length + (40)

            RichTextBox1.Select(startindex, endindex)
            
            RichTextBox2.AppendText(RichTextBox1.SelectedText & vbNewLine)
         
            start = startindex + endindex

        End If


Hvala
[ mish_ns @ 23.02.2012. 10:11 ] @
A sta treba tacno da radi taj kod?
[ BackoSoft @ 23.02.2012. 19:29 ] @
Treba da ovaj gore kod vrti za +1 tako da stalno neklikam na gumb da bih se ovo gore izvrsilo....


[ mish_ns @ 23.02.2012. 20:45 ] @
mozes da stavis kod u TimerTick event, da se izvrsava periodicno.
Moze i sa while uslovi...end while. E sad uslove pod kojima treba izvrsavati kod koji si dao najbolje znas ti :)
[ BackoSoft @ 23.02.2012. 22:10 ] @
Konkretno treba mi ovaj kod da se izvrsi 4 puta

Code:
   For x As Integer = 0 To RichTextBox2.Text.Length - 1
        'RichTextBox2.SelectionStart = x
        '   RichTextBox2.SelectionLength = 1
        '  If RichTextBox2.SelectedText = " " Then RichTextBox2.SelectedText = ""
        '  Next
[ mish_ns @ 24.02.2012. 06:19 ] @
Code:

for brojac as integer = 0 to 3
      For x As Integer = 0 To RichTextBox2.Text.Length - 1
        RichTextBox2.SelectionStart = x
        RichTextBox2.SelectionLength = 1
        If RichTextBox2.SelectedText = " " Then 
             RichTextBox2.SelectedText = ""
        end if
      Next
next

Mislim da je to to.
[ BackoSoft @ 24.02.2012. 09:34 ] @
To je to svaka cast majstore ...
Baj si dobar sa ovim petljama ;-)