hi all,
i'm having problems formatting my textbox at form_load... and as much as possible i want to format it before or right after i bind it to my data table... which ever is possible.
these are the codes i've used but didn't work... i have place it on the Form_Load Event
then i tried this as well but no luck.Code:txtBirthdate.DataBindings.Add("Text", DT_CUST, "birthdate") txtBirthdate.Text = Format(txtBirthdate.Text, "dd-MMM-yy")
then i tried placing these codes on a button and it worked but it would be inconvenient to push a button just to format a textbox to a date format.Code:txtBirthdate.DataBindings.Add("Text", DT_CUST, "birthdate") txtBirthdate.Text = Format(CStr(txtBirthdate.Text), "dd-MMM-yy")
any suggestions? thanks.


Reply With Quote
