Aug 28th, 2006, 02:40 PM
#1
Thread Starter
Fanatic Member
Maskedit Again
Hi
I do not to get to format my maskedit, I want show a 0.993 when the control lost focus, but It show me 993, I want show zero left (0.885 or 0.889 no 885 or 889)
tia
Attached Files
Aug 28th, 2006, 02:44 PM
#2
Re: Maskedit Again
i don't really understand your question.
your MaskEdBox1 does what you want...
Aug 28th, 2006, 02:49 PM
#3
Thread Starter
Fanatic Member
Re: Maskedit Again
hI
When MaskEdBox1 lost Focus It show 993 , and I want 0.993 com zeros in left
Aug 28th, 2006, 02:58 PM
#4
Re: Maskedit Again
i'm not getting that behaviour - when you click Command1 0.993 is displayed, followed by 993 - but that's what you've asked it to do...
MaskEdBox1 remains as 0.993
Aug 28th, 2006, 03:13 PM
#5
Thread Starter
Fanatic Member
Re: Maskedit Again
I want , when MaskEdBox1 lost Focus It show me 0.993 not 993
Aug 28th, 2006, 03:17 PM
#6
Re: Maskedit Again
it's nothing to do with LostFocus.
you mean when you click Command1 you want it to MsgBox the correct value.
use MaskEdBox1.FormattedText
Aug 28th, 2006, 03:21 PM
#7
Re: Maskedit Again
VB Code:
Private Sub MaskEdBox1_LostFocus()
MsgBox Format(MaskEdBox1, "0,###")
End Sub
Last edited by gavio; Aug 28th, 2006 at 03:27 PM .
Aug 28th, 2006, 03:26 PM
#8
Addicted Member
Re: Maskedit Again
Refer the sample attached. And use the button2.
Propertiesx to look at ClipMode = IncludeLiterals
MsgBox Me.MaskEdBox2.Text
Hope this helps!!
Attached Files
- cha0s4u ENJOI
Do Remember to
RATE a post if it helps u,
Ratings encrougage those who Know enough,to help others
Aug 29th, 2006, 05:12 AM
#9
Thread Starter
Fanatic Member
Aug 29th, 2006, 05:15 AM
#10
Re: Maskedit Again
As i said in post #6, use MaskEdBox1.FormattedText instead of MaskEdBox1.Text
Aug 29th, 2006, 05:20 AM
#11
Thread Starter
Fanatic Member
Re: Maskedit Again
for me , show only read only
Aug 29th, 2006, 05:24 AM
#12
Re: Maskedit Again
eh?
VB Code:
Private Sub MaskEdBox1_LostFocus()
MsgBox MaskEdBox1.FormattedText
End Sub
Aug 29th, 2006, 05:30 AM
#13
Thread Starter
Fanatic Member
Re: Maskedit Again
tks, but I do not want show in Msgbox, but when the maskedit lost focus (go a other control) , It show 1 integer and 3 decimals
If I typed 1.933 It work fine , because show me 1.933
But
If I typed 0.933 It do not work fine , show me 933
when It Lost focus
Aug 29th, 2006, 07:49 AM
#14
Addicted Member
Re: Maskedit Again
where do you want to show it? Coz when you leave the MaskedEdit1 control, the data entered is formatted as is.....
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width