Link to home
Create AccountLog in
Avatar of Victor  Charles
Victor CharlesFlag for United States of America

asked on

Help with formatting Masked textbox

Hi,

I am using the following mask in my masked Texbox &999 as the first characters. I need to modify it as follows: &999: &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
to allow users to enter max 200 characters, I will force users to enter &999 as first 4 characters but how for I place symbol ":" and space, before they enter the text?

Thanks,

Victor
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

I would use 2 fields (controls):
-your existing masked textbox
-a plain textbox with a maxlength of 200
Avatar of Victor  Charles

ASKER

is it possible to just use one textbox and check each line in the textbox to make sure the user enters also enters data in the following format +999/-999?. Also I notice icouldn't expand the height of the masked edit control, can that be done? The problem with inserting data in two controls is I would need to save data from both controls to one data filed, it would be a lot easier if I could do it from one control.

Thanks,

Victor
>>The problem with inserting data in two controls is I would need to save data from both controls to one data filed, it would be a lot easier if I could do it from one control.

Not a problem compared to having a masked text box trying to achieve what you want.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer