Beautiful mate, worked like a charm...
"Peter Proost" <pproost@nospam.hotmail.com> wrote in message
news:uTwTbQSFGHA.3000@TK2MSFTNGP14.phx.gbl...
> Forget my first answer, this example by Herfried should help you
>
>
http://groups.google.be/group/microsoft.public.dotnet.languages.vb/msg/dc907
> 1779b6c7e98
>
>
> hth Greetz Peter
>
>
> --
> Programming today is a race between software engineers striving to build
> bigger and better idiot-proof programs, and the Universe trying to produce
> bigger and better idiots. So far, the Universe is winning. (Rich Cook)
>
> "Peter Proost" <pproost@nospam.hotmail.com> schreef in bericht
> news:ur4wXVRFGHA.3176@TK2MSFTNGP12.phx.gbl...
>> Hi Herfried, I see what you mean, I was to fast reading the op's post.
>>
>> Greetz Peter
>>
>> --
>> Programming today is a race between software engineers striving to build
>> bigger and better idiot-proof programs, and the Universe trying to
>> produce
>> bigger and better idiots. So far, the Universe is winning. (Rich Cook)
>>
>> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schreef in bericht
>> news:#rJ0hLRFGHA.752@TK2MSFTNGP12.phx.gbl...
>> > "Peter Proost" <pproost@nospam.hotmail.com> schrieb:
>> > > RichTextBox1.Lines.Length should get you the number of lines
>> >
>> > This property will actually return the number of physical lines, not
>> > the
>> > number of lines shown on the screen.
>> >
>> > --
>> > M S Herfried K. Wagner
>> > M V P <URL:
http://dotnet.mvps.org/> >> > V B <URL:
http://classicvb.org/petition/> >> >
>>
>>
>
>