PC Review


Reply
Thread Tools Rate Thread

block number of lines in a textbox

 
 
Fabio
Guest
Posts: n/a
 
      7th Apr 2004
Hi all,

How can I block the number of lines that the user entered in a texbox, I
need that the user enter only 4 lines of text.

how can I block this and not permit that the user copy other text with more
than 4 lines into the textbox too.

Thanks in advance,

Fabio


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2hhcmxpZSBXaWxsaWFtcw==?=
Guest
Posts: n/a
 
      7th Apr 2004
Private Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChange
If TextBox1.Lines.Length > 4 The
Dim newLines(3) As Strin
For i As Integer = 0 To
newLines(i) = TextBox1.Lines(i
Nex
TextBox1.Lines = newLine
End I
End Sub
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of lines in a textbox =?Utf-8?B?YWx2aW4gS3VpcGVy?= Microsoft Access Forms 8 6th Aug 2006 05:56 PM
number of lines in a textbox =?Utf-8?B?RXJpYw==?= Microsoft Dot NET Framework 0 12th Mar 2006 07:27 AM
number of lines in a textbox =?Utf-8?B?RXJpYw==?= Microsoft Dot NET 0 12th Mar 2006 07:27 AM
I need to get the number of lines in a textbox..... =?Utf-8?B?RXJpYw==?= Microsoft Dot NET Framework Forms 0 12th Mar 2006 05:32 AM
I need to get the number of lines in a textbox.... =?Utf-8?B?RXJpYw==?= Microsoft Dot NET 0 12th Mar 2006 05:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:13 AM.