Loading

text box

10 posts / 0 new
Last post
Offline
Joined: 07/27/2009
text box

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..

admin's picture
Offline
Joined: 11/14/2008
re: text box

Use the format function.

ex: Text1.Text = Format(Text1.Text, "Short Date")

Offline
Joined: 07/27/2009
time

what about when i will input time? which should be separated by a colon(:)?

emson('.')

Offline
Joined: 07/27/2009
question

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('.')

Offline
Joined: 07/27/2009
text box

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('.')

admin's picture
Offline
Joined: 11/14/2008
re: text box

Where do you intend to change the date? In the DateTimePicker control or TextBox control?

Offline
Joined: 07/27/2009
sir

sir i want to change it in the text box.

emson('.')

admin's picture
Offline
Joined: 11/14/2008
re: sir

This is impossible with a textbox since vb does not support input mask in textbox.

Try searching for EditMask Control.

Anonymous
SAVING data fields

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

admin's picture
Offline
Joined: 11/14/2008
re: SAVING data fields

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

Filtered HTML

  • You may insert videos with [video:URL]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.