Wop!
It seems that this newsgroup is dead.
"roger" < XXXX@XXXXX.COM > wrote in message
news:f6kee5$ggt$ XXXX@XXXXX.COM ...
> Hi,
>
> I need some help. I am using Masked Edit Control and trying to set up a
> format (to accept only numeric entry). I am using VB6
>
> When I enter all numbers in the Masked Edit Control box, and move the
> focus to another control,
> the numbers in the Masked Edit Control that I typed temporarily
> dissappears and the only format of the
> Masked Edit Control shows. However, when I move my focus back to the
> control, everything (numbers) is there.
>
> Here I can reproduce my problem.
> 1) place a command control button on a form
> 2) place a Masked Edit Control on a form
> 3) place the following codes in the form under one of the command control
> subroutines
>
>
> Private Sub Command1_Click()
>
> MaskEdBox1.Mask = "##-###"
> MaskEdBox1.Format = "__-___"
>
>
> End Sub
>
> If you enter all numbers in the Masked Edit Control box, and move your
> focus to another control,
> the text in the control will show "__-___", not the numbers just entered.
>
>
> Also, if I doubled click the button only one time,
> the " - " text (an empty format shows) will show in the Masked Edit
> Control box.
> However, the real format (when the focus is moved to the control) is still
> "__-___"
>
> If I doubled click the button twice, the "__-___" text will show in the
> Masked Edit Control box instead.
>
>
>
> Thank you for any help and suggestions.
>
> R
>