Please help me,
I use visual basic 6 for my programe. I want that when I input a numeric into textbox, it will auotmatic separator numeric with dot point (.) symbol for thousand and "," symbol for decimal, because I live in Vietnam.
Thanhk so much.
Lamvinhkhuong
Numeric textboxInput numeric in textbox with seprator
Page 1 of 1
4 Replies - 4166 Views - Last Post: 01 June 2009 - 10:34 PM
Replies To: Numeric textbox
#2
Re: Numeric textbox
Posted 25 May 2009 - 12:00 AM
You just write a code saying, when this ascii code for the decimal is typed in, a comma is displayed instead.
#3
Re: Numeric textbox
Posted 25 May 2009 - 03:29 AM
use the format funtion to achive your taxk
format is used to format the entered text
or simply used the maskededit textbox
format is used to format the entered text
or simply used the maskededit textbox
#4
Re: Numeric textbox
Posted 01 June 2009 - 04:09 PM
You can make code to write , or . depending on the number of the characters
#5
Re: Numeric textbox
Posted 01 June 2009 - 10:34 PM
like that?:
change Text1 by your textbox
and about separator i think you can make
text2.text = text1.text (add the numeric from the anti no numeric textbox)
and after you can use the REPLACE func
Private Sub Text1_KeyPress(KeyAscii As Integer) If (KeyAscii <> vbKeyBack) And Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 End Sub
change Text1 by your textbox
and about separator i think you can make
text2.text = text1.text (add the numeric from the anti no numeric textbox)
and after you can use the REPLACE func
This post has been edited by xylifagz: 01 June 2009 - 10:45 PM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|