Microsoft
Software
Hardware
Network
Question : How to Create an On Key Press Event in Visual Studio 2005
Hi,
I have created a web form in visual Studio 2005. There is a comments text box which I have limited to 500 characters. I would like to display another textbox or label that shows how many characters remain until the max character limit is reached. Every time a character is entered I would like to have the textbox that is counting the characteres be updated. how can I do this using VB?
I am new to VB. Any help would be appreciated.
Thanks!
D-bass
Answer : How to Create an On Key Press Event in Visual Studio 2005
I was able to find a solution that works on the following site:
http://www.rosshawkins.net
/archive/2
006/12/04/
asp.net-te
xt-
counter
.html.aspx
Here is the code incase someone else has the same question:
ssage, this.form.remLen, 160);" onkeydown="textCounter(txt
Message, this.form.remLen, 160);" />
characters left
Random Solutions
VBA Looping through cells
CommonDialog control in Access 2007 -- problem
How can I programmatically get a list of spreadsheets from a MS Excel workbook?
How can I put the file name and a SHORT path at the bottom of my word 2007 documents?
Closing a form with docmd.close
xbox 360 show as mapped or connected external drive to PC
Which to choose Standard & Premium CALs
On Insert: The text, ntext, or image data type cannot be selected as DISTINCT
How do I find a value in an Excel matrix using column and row headers?
TRYING TO OPEN ACCESS DATABASE THAT HAS A FRONT END MENU WHEN DOUBLE CLICK TO OPEN