answersLogoWhite

0


Best Answer

Hi, You can write code in keypressed event for any control and validate whether only allowed Characters are keyed in. Private sub Txt_MyTexbox.KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
Select Case LCase(e.KeyChar)
Case "A"
Case "B"
Case "0"
Case "2"
Case "9"
End Select
End Sub

Like this you can check for any key and validate.
Hope this helps

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: In visual basic 2005 express edition what is a code for making it so that only certain characters can be allowed in a text box?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do you have to pay for Visual Basic 2008?

u can download Express Edition it is Free. DOnt try to pirate its illegal Free Edition Link http://www.microsoft.com/express/default.aspx


What is the URL for the New Indian Express e-paper Bangalore edition?

Please see the related links section for the URL of New Indian Express e-paper Bangalore edition.


Where might one download the Microsoft SQL Server 2005 Express Edition?

One may download the Microsoft SQL Server 2005 Express Edition on the official Microsoft site. Other independent providers of the Microsoft SQL Server 2005 Express Edition include Melissa Data and Windows Sazure.


Is there a way to program speech recognition in c plus plus with the express edition not the visual studio version?

The express edition's C++ implementation is no different to the visual studio implementation. It is the exact same language.


What is the Visual C plus plus 2008 Express Serial Code?

The Express edition of C++ does not require a serial code. It is free.


What does express mean in a shotgun?

I am guessing you have a model 870. It is a edition of the 870 shotgun


What is the learning edition of visual basic?

Visual Basic Express Edition 2010 is a free version available from the msdn website (just use a search engine for it) and will allow you to do almost all the functions of the professional version.


Express 54123.3214nA in scientific form?

It is not possible to express a number containing alphabetic characters (nA) in scientific form.


Do any characters in mockingjay express similar sentiments as the speaker in Kyrie?

they do not express similar sentiments as the speaker in Kyrie


How do you run multiple sql queries in visual basic 2008 express edition?

you dont


What is the value of the Franklin Mint Presidential Commemorative Medals American Express Edition?

500


Is pass allowed by duronto express?

only duty pass