how can i set the format of the text box in date form
this is what i want to do:
if I input dat to the text box it will automatically separate the month,day,year by a slash (/)..
thank you..
Use the format function.
ex: Text1.Text = Format(Text1.Text, "Short Date")
Text1.Text = Format(Text1.Text, "Short Date")
what about when i will input time? which should be separated by a colon(:)?
emson('.')
sir i have many things to ask because we are making a montoring and inventory system of a clinic.
question no.1 sir ^_^
how do we can make a text box that when we input date it will be automatically separate the day , year and month by a slash (/).
example:
08/06/2009
and also in time:
example.
08:30 am
i know that the two q are similar sir...
----------
question no. 2 - about aero progress bar
there is a problem when we use it. there is alway a promt that says "invalid use of property(value).
example sir
if the progreess bar reach the max it will show the other form.
we maked a simple code like this...
>sub form
aeroprogressbar.value = 0
>timer1
aeroprogressbar.value = aeroprogressbar.value +2
if aeroprogressbar.value = aeroprogressbar.max then form1.show form2.hide endif end sub
>>>>>we also set the timer interval to 10 the code that we maked is running but (i mean it shows the loading process) here's the problem again sir
after the progress bar reach the max(100) a messagebox appeared
>that says>>> "invalid use of property(value)"
>but we check the properties of the progressbar and is has the value(property)
>>ah sir what do you thinks is or we can say are the problems?? please help us!! thanks for the reply sir^_^
sir
i have already try your suggestion but then i have to press the right scroll to change the month and the year.
sir do you know hoe to make it fix?
ex:
09/08/90
when i change the 09 to a value ex: 01 it will auotomatically go to the 08 when i continue typing nos. and so with the year.
thank you.
Where do you intend to change the date? In the DateTimePicker control or TextBox control?
sir i want to change it in the text box.
This is impossible with a textbox since vb does not support input mask in textbox.
Try searching for EditMask Control.
Hi, when I try saving data from text boxes to a access database that is connected by DataEnvironment, then it always overwrites the data rather than create a new one!!! Iam posting my codes here, so that you can have a look at them.
DataEnvironment1.rsCommand2.AddNew txtCxNo.Text = Custnum txtname.Text = Company txtPhNo.Text = Contact txtadd.Text = Address txtEmail.Text = Email DataEnvironment1.rsCommand2.Update
Can you help me, please in solving this problem of mine!!!
Regards
No. Your source code will add another record and will not override your existing record since you are using the addnew properties.
Kindly double check your table.
More information about text formats
<code>
<blockcode>
<asp>
<c>
<cpp>
<csharp>
<css>
<html4strict>
<java>
<javascript>
<mysql>
<php>
<python>
<sql>
<vb>
<vbnet>
<foo>
[foo]
Use the format function.
ex:
Text1.Text = Format(Text1.Text, "Short Date")what about when i will input time? which should be separated by a colon(:)?
emson('.')
sir i have many things to ask because we are making a montoring and inventory system of a clinic.
question no.1 sir ^_^
how do we can make a text box that when we input date it will be automatically separate the day , year and month by a slash (/).
example:
08/06/2009
and also in time:
example.
08:30 am
i know that the two q are similar sir...
----------
question no. 2 - about aero progress bar
there is a problem when we use it. there is alway a promt that says "invalid use of property(value).
example sir
if the progreess bar reach the max it will show the other form.
we maked a simple code like this...
>sub form
aeroprogressbar.value = 0
>timer1
aeroprogressbar.value = aeroprogressbar.value +2
if aeroprogressbar.value = aeroprogressbar.max then
form1.show
form2.hide
endif
end sub
>>>>>we also set the timer interval to 10
the code that we maked is running but (i mean it shows the loading process)
here's the problem again sir
after the progress bar reach the max(100) a messagebox appeared
>that says>>> "invalid use of property(value)"
>but we check the properties of the progressbar and is has the value(property)
>>ah sir what do you thinks is or we can say are the problems?? please help us!! thanks for the reply sir^_^
emson('.')
sir
i have already try your suggestion but then i have to press the right scroll to change the month and the year.
sir do you know hoe to make it fix?
ex:
09/08/90
when i change the 09 to a value ex: 01 it will auotomatically go to the 08 when i continue typing nos. and so with the year.
thank you.
emson('.')
Where do you intend to change the date? In the DateTimePicker control or TextBox control?
sir i want to change it in the text box.
emson('.')
This is impossible with a textbox since vb does not support input mask in textbox.
Try searching for EditMask Control.
Hi, when I try saving data from text boxes to a access database that is connected by DataEnvironment, then it always overwrites the data rather than create a new one!!! Iam posting my codes here, so that you can have a look at them.
DataEnvironment1.rsCommand2.AddNew
txtCxNo.Text = Custnum
txtname.Text = Company
txtPhNo.Text = Contact
txtadd.Text = Address
txtEmail.Text = Email
DataEnvironment1.rsCommand2.Update
Can you help me, please in solving this problem of mine!!!
Regards
No. Your source code will add another record and will not override your existing record since you are using the addnew properties.
Kindly double check your table.
Pages
Add new comment