473,386 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Q: How To Set a mask on a TextBox

Hi!

Is it possible to set a mask on a TextBox control?

I want to limit the chars to be entered, in one box i want just numbers 0-9
and in another box i want to separate the areacode in a phonenumber
automaticly...

Regards

Martin
Nov 17 '05 #1
2 3162
"Visual Systems AB (Martin Arvidsson)" <ma**************@vsab.net> wrote in
message news:e7**************@TK2MSFTNGP15.phx.gbl...
Is it possible to set a mask on a TextBox control?


Google is your friend...
http://www.google.com/search?sourcei...2+TextBox+mask
Nov 17 '05 #2
Hi,

There are several ways:
1- Handle the onKeyPress event
2- derive your own control and do the check on it
3- use of of a number of free controls available, check google , one in
particular I have bookmarked
http://www.dotnet247.com/247referenc...rchive305.html
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Visual Systems AB (Martin Arvidsson)" <ma**************@vsab.net> wrote in
message news:e7**************@TK2MSFTNGP15.phx.gbl...
Hi!

Is it possible to set a mask on a TextBox control?

I want to limit the chars to be entered, in one box i want just numbers
0-9
and in another box i want to separate the areacode in a phonenumber
automaticly...

Regards

Martin

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: johnp | last post by:
Hi, Our Tech department updated users to Office 2003 this week. Now the input mask in one of the applications is showing up as: (###) ###-### The input mask wizard works correctly when I...
9
by: msnews.microsoft.com | last post by:
Hello. How can I set input mask for TextBox? Or can I use for mask input some other control?
2
by: msnews.microsoft.com | last post by:
Hello. How can I set input mask for TextBox in Windows Form? For example I want to mask (format) TextBox for inputing phone number like (999) 999-99-99. The TextBox must first show something like...
0
by: Christian | last post by:
Hi all, on a PocketPC 2003 dialog I want the user to enter an IP-Adress using a TextBox control. Within the TextBox control I would like to display an predefined input mask like xxx.xxx.xxx.xxx ...
2
by: Alberto | last post by:
Can I set a mask to a TextBox? How? Thank you very much
0
by: =?Utf-8?B?RGV2ZXJz?= | last post by:
I've successfully made the columns in a DataGridView format numbers correctly using the Format porperty. Now I'm trying to do the same with textboxes, but the Mask property doesn't work the same...
2
by: nussu | last post by:
Hi , I need to find a subnet mask number for a given IP Address number. I have two textbox's once enter the ip address in first textbox i need to get subnet mask number for that ip address in...
3
by: rudeman76 | last post by:
Hi, I have been trying to find the answer to this for a couple days now. What I have is a textbox (txtTime) that the user will enter a time into. What I want is that the user can only enter in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.