Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 146 results for
maskedtextbox
- Page 1
Maskedtextbox C#
Programming
Software Development
14 Years Ago
by Jimmalmquist
i need help with a
maskedtextbox
in a C# applikation. I want want it to display …
Re: Maskedtextbox C#
Programming
Software Development
14 Years Ago
by Jimmalmquist
You're right the control doesn't know it it's a date or another type of mask. It read the decimalseparator from the culture wich for finnish so need one of two solutions. 1. owerwrite the comma and set it to "." this is not so easy. 2. Get the
maskedtextbox
to validate the input as a date.
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by zaeemabbas20
maskedtextbox
can't be empty because it holds " -" value which has length 5.
Re: MaskedTextBox Validation
Programming
Software Development
13 Years Ago
by codeorder
… to check and compare the Date value in a
MaskedTextBox
. [B]1
MaskedTextBox
[/B] [CODE]Public Class Form1 Private Sub Form1_Load(ByVal…(2))) If dtUserInput = dtToday OrElse dtUserInput = dtTomorrow Then '// check if
MaskedTextBox
is Today or Tomorrow. MsgBox("Correct date, proceed with…
Read value of dynamic MaskedTextBox
Programming
Software Development
13 Years Ago
by nertos
… gb1 = new GroupBox();
MaskedTextBox
mtb1 = new
MaskedTextBox
();
MaskedTextBox
mtb2 = new
MaskedTextBox
();
MaskedTextBox
mtb3 = new
MaskedTextBox
(); mtb1.Location = new … Size(53, 20); label1.Name = "
maskedTextBox
" + id_3.ToString(); gb1.FlatStyle = FlatStyle…
Re: Read value of dynamic MaskedTextBox
Programming
Software Development
13 Years Ago
by nick.crane
… y, int id) { GroupBox gb1 = new GroupBox();
MaskedTextBox
mtb1 = new
MaskedTextBox
();
MaskedTextBox
mtb2 = new
MaskedTextBox
();
MaskedTextBox
mtb3 = new
MaskedTextBox
(); //... int id_3 = id * 3; //... mtb1.Tag = id_3…
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by zaeemabbas20
…is still there, when i press backspace key in
maskedtextbox
while tracing in keypress event, nothing happens, but … it then cursor moves in the previous textbox or
maskedtextbox
, the code below works fine with "Textbox&…quot; but not with "
Maskedtextbox
". ElseIf keyAsscii = Keys.Back And txtAddress.Text = …
Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by zaeemabbas20
… moves to the other text box or
maskedtextbox
, but when i press backspace and
maskedtextbox
is empty with length "5"…
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by Reverend Jim
>and
maskedtextbox
is empty with length "5" If the
maskedtextbox
is empty then the length is 0, not 5.
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by zaeemabbas20
… that when i pressed enter key and at that time
Maskedtextbox
seemed to be empty but when i calculated length it…
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by Luc001
Hi, You need the Keydown event from your
Maskedtextbox
for that. Here's an example with 5 textboxes: Private …
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by mahdir8
hi im approve TnTinMN's answer you should set textmaskformat prop of
maskedtextbox
to excludepromtandliterals this is your solve
C++ maskedtextbox (IP address)
Programming
Software Development
14 Years Ago
by Sphero
Hello, I created a new
maskedtextbox
and gave the mask property the value 000.000.000.000, which should act as an IP address box. Now, when I open my configuration panel and configure my IP address, it jumps to the next mask while pressing the . key. Is there any way to achieve in C++ using Visual Studio 2008.
Problem with MaskedTextBox
Programming
Software Development
13 Years Ago
by gsmdreams
… I use this code to open a new form, My
maskedtextbox
on the new form can't allow the user user…
vb - 2008 maskedtextbox
Programming
Software Development
13 Years Ago
by markdean.expres
Guys I need to store the exact value (including the mask) from my maskedtextox into my database. My
maskedtextbox
has 5 digits (ex. 20000) but when I am saving it and checking it into my database, only the first non-zero digits are being saved. How do I deal with this?
Re: Maskedtextbox C#
Programming
Software Development
14 Years Ago
by ddanbe
Has probably to do with international settings. In some countries the , (a comma) is the decimal sign in others it is . (a point)
Re: Maskedtextbox C#
Programming
Software Development
14 Years Ago
by Jimmalmquist
No it's not that. The culture is set to fi-FI
Re: Maskedtextbox C#
Programming
Software Development
14 Years Ago
by ddanbe
I set a mask of 00.00.0000 and had absolutely no problem with it. I even could set a date like 56.67.5678 ! I should advise you to use a DateTimePicker control instead.
Re: Maskedtextbox C#
Programming
Software Development
14 Years Ago
by ddanbe
Changing a char in a string is very easy! Look : [CODE=c#]namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string InputStr = "12,34,5678"; string DateStr = InputStr.Replace(',', '.'); } } }[/CODE] DateStr now contains : "12.34.…
maskedtextbox 000000 not visible
Programming
Software Development
13 Years Ago
by zarifin99ska
Hi. for example i want to put 0000012, but the zero number not showing. can someone help me?
Re: maskedtextbox 000000 not visible
Programming
Software Development
13 Years Ago
by roottybrian
are you talking about entering the number on a textbox or on a database. Anyway, the number is 12 if it's an integer and 0000012 if it's a string. in other words convert it into string to have it the way it is.
MaskedTextBox Validation
Programming
Software Development
13 Years Ago
by bLuEmEzzy
Please Help, the user can only input today's date and tomorrow's date... How can i get it?? example valid dates are: Today's date: March 01, 2011 and tomorrow's date: March 02, 2011 if the dates are not valid then error.... Thank You... [CODE] Dim DD As String : Dim MM As String : Dim YYYY As String Dim DDMMYYY As String…
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by Reverend Jim
The placeholders for the mask don't count for the length. If you haven't entered any characters then the length is zero.
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by Reverend Jim
What is the mask you are using? I'll plug it in and play with it here.
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by zaeemabbas20
I am using ####-####### as mask.
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by Reverend Jim
I have to admit. You were right. Because the user can enter digits at any position, the string can contain embedded blanks. As such you can get the actual number of digits entered by if isnumeric(keyAscii) Then numdigits = 1 + Len(mskMobile1.Text.Replace(" ", "").Replace("-", "")) which …
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by TnTinMN
Try setting the "TextMaskFormat" before retrieving the text. ` MaskedTextBox1.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals`
Re: Detect backspace keyascii in Maskedtextbox
Programming
Software Development
11 Years Ago
by TnTinMN
use the keydown event not keypress. You cannot trap backspace on keypress.
Re: Problem with MaskedTextBox
Programming
Software Development
13 Years Ago
by Patplays852
try [[CODE=vb.net] F2.Enabled = True [/CODE]
Re: vb - 2008 maskedtextbox
Programming
Software Development
13 Years Ago
by ChrisPadgham
what is the field type you are storing in. It should be text if you want the exact pattern stored.
1
2
3
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC