slashes in textbox
-
Sir/Madam Can i insert the slashes in the textbox (two slashes) for the user to insert the date(day,month,year). Please help Thanks and Regards Pankaj
Unless something has changed with 2.0, you will have to create a custom control for this. I did something similar but it was kind of ugly by taking 5 textboxes, the 1st, 3rd, and 5th had the appropriate borders blanked out and the 2nd and the 4th contained the slashes then you put them all side by side with no spaces. Then you use an autotab JS function to make it seem as if they are just typing through a mask in the textbox. It will appear to be a textbox but there has to be a better way.
CleAkO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School) -
Sir/Madam Can i insert the slashes in the textbox (two slashes) for the user to insert the date(day,month,year). Please help Thanks and Regards Pankaj
-
Thank goodness!
CleAkO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School) -
Sir/Madam Can i insert the slashes in the textbox (two slashes) for the user to insert the date(day,month,year). Please help Thanks and Regards Pankaj
if you need those / for date purposes..its easier to declare a date object to collect the information and asign the input to that variable.. after the variable or object gets the input as string..u format it to represent what u want... example: dim TD as Date TD = textbox1.text msgbox(TD.tostring("dd/MM/yyyy") i just use a message box to display the result..but the same applies were ever u use it..
Nab
-
if you need those / for date purposes..its easier to declare a date object to collect the information and asign the input to that variable.. after the variable or object gets the input as string..u format it to represent what u want... example: dim TD as Date TD = textbox1.text msgbox(TD.tostring("dd/MM/yyyy") i just use a message box to display the result..but the same applies were ever u use it..
Nab
Thats true but I think the OP is asking how to display those in the textbox so that someone understands that it is looking for a date.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School) -
Thats true but I think the OP is asking how to display those in the textbox so that someone understands that it is looking for a date.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that." - Tommy Boy
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)just use a datetimepicker
Nab