473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

frustrated

Hi,
I just spend 15 minutes looking for the correct use of dateandtime.timer.
That stupid 'help' from .NET2002 describes the timer function perfectly, but
when using it you get an error "is a type ....". So some prefix is
necessary, but thats not described in the help page. I miss that a lot in
the help pages.
Frank
Nov 21 '05 #1
6 999
Frank,

There are 4 timers in VBNet
the window.forms.timer
the system.timers.timer
the threading.thread.timer
and the one you took and most people even do not know that it exist.

I advise you to use the first one, for common forms application that one is
very good to use.

The most easy way to use it is to drag it from your form control toolbox
(not components that is the system) to your form. Than set in the properties
it to enabled, set the duration it has to go in milliseconds, Than in your
code you choose left in the combobox on top the timer1 and than in the right
combobox the click event. Than you are ready to type in the code that than
has to be done.

I hope this helps?

Cor

"Frank" <fr***@frank.com>
Hi,
I just spend 15 minutes looking for the correct use of dateandtime.timer.
That stupid 'help' from .NET2002 describes the timer function perfectly,
but
when using it you get an error "is a type ....". So some prefix is
necessary, but thats not described in the help page. I miss that a lot in
the help pages.
Frank

Nov 21 '05 #2
No Cor, that doesn't help. I was only frustrated that I had to search so
long for the prefix dateandtime. It should be on the helppage.

I needed the timer functionality just as dateandtime.timer provided, which
is time in seconds since midnight.

Regards
Frank

"Cor Ligthert" <no************@planet.nl> wrote in message
news:u3**************@tk2msftngp13.phx.gbl...
Frank,

There are 4 timers in VBNet
the window.forms.timer
the system.timers.timer
the threading.thread.timer
and the one you took and most people even do not know that it exist.

I advise you to use the first one, for common forms application that one is very good to use.

The most easy way to use it is to drag it from your form control toolbox
(not components that is the system) to your form. Than set in the properties it to enabled, set the duration it has to go in milliseconds, Than in your
code you choose left in the combobox on top the timer1 and than in the right combobox the click event. Than you are ready to type in the code that than has to be done.

I hope this helps?

Cor

"Frank" <fr***@frank.com>
Hi,
I just spend 15 minutes looking for the correct use of dateandtime.timer. That stupid 'help' from .NET2002 describes the timer function perfectly,
but
when using it you get an error "is a type ....". So some prefix is
necessary, but thats not described in the help page. I miss that a lot in the help pages.
Frank


Nov 21 '05 #3
Frank,

That timer is hard to find however
http://msdn.microsoft.com/library/de...rykeywords.asp

This page is mostly the best to start for MVB functions..

Cor
Nov 21 '05 #4
Thanks Cor, that will come in handy.
But I don't get it: I'm using the INT function without the prefix
'conversion' and now I want to use 'timer' I have to add 'dateandtime'. Do I
have to conclude that some VB functions are imported automatically and some
are not? Is that described somewhere?
Regards
Frank
"Cor Ligthert" <no************@planet.nl> wrote in message
news:OU**************@TK2MSFTNGP11.phx.gbl...
Frank,

That timer is hard to find however
http://msdn.microsoft.com/library/de...us/vblr7/html/
vaorivbruntimelibrarykeywords.asp
This page is mostly the best to start for MVB functions..

Cor

Nov 21 '05 #5
Frank,

A part of this is easy to explain, however it are two questions in my
opinion.

Go to solution explorer go to the application (not the solution), rightclick
and open properties and in that the tab imports, there you see what is
imported without the import clause. You can add there as well of course.

Than the dateandtime is a part of the MVB namespace where from is written

http://msdn.microsoft.com/library/de...timemodule.asp

http://msdn.microsoft.com/library/de...l/vafctInt.asp

Mostly it is important with this if a method is ambiguous (exist in more
namespaces)

I hope this helps?

Cor
"Frank" <fr***@frank.com>
Thanks Cor, that will come in handy.
But I don't get it: I'm using the INT function without the prefix
'conversion' and now I want to use 'timer' I have to add 'dateandtime'. Do
I
have to conclude that some VB functions are imported automatically and
some
are not? Is that described somewhere?
Regards
Frank
"Cor Ligthert" <no************@planet.nl> wrote in message
news:OU**************@TK2MSFTNGP11.phx.gbl...
Frank,

That timer is hard to find however

http://msdn.microsoft.com/library/de...us/vblr7/html/
vaorivbruntimelibrarykeywords.asp

This page is mostly the best to start for MVB functions..

Cor


Nov 21 '05 #6
Ok, thanks Cor

"Cor Ligthert" <no************@planet.nl> wrote in message
news:ew**************@TK2MSFTNGP15.phx.gbl...
Frank,

A part of this is easy to explain, however it are two questions in my
opinion.

Go to solution explorer go to the application (not the solution), rightclick and open properties and in that the tab imports, there you see what is
imported without the import clause. You can add there as well of course.

Than the dateandtime is a part of the MVB namespace where from is written

http://msdn.microsoft.com/library/de...us/vblr7/html/
vamscdatetimemodule.asp
http://msdn.microsoft.com/library/de...us/vblr7/html/
vafctInt.asp
Mostly it is important with this if a method is ambiguous (exist in more
namespaces)

I hope this helps?

Cor
"Frank" <fr***@frank.com>
Thanks Cor, that will come in handy.
But I don't get it: I'm using the INT function without the prefix
'conversion' and now I want to use 'timer' I have to add 'dateandtime'. Do I
have to conclude that some VB functions are imported automatically and
some
are not? Is that described somewhere?
Regards
Frank
"Cor Ligthert" <no************@planet.nl> wrote in message
news:OU**************@TK2MSFTNGP11.phx.gbl...
Frank,

That timer is hard to find however

http://msdn.microsoft.com/library/de...us/vblr7/html/ vaorivbruntimelibrarykeywords.asp

This page is mostly the best to start for MVB functions..

Cor



Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: steve | last post by:
I am quite frustrated with php’s include, as I have spent a ton of time on it already... anyone can tell me why it was designed like this (or something I don’t get)? The path in include is...
3
by: MaryO | last post by:
I was hoping someone could help me with the OnNotInList function from Access. I downloaded this code below. I keep getting an error on the fAddToList – Sub or Function not defined. Please help...
6
by: garyusenet | last post by:
I have created a new project. and within this project as per the tutorial created an sql database. i have made a query which returns the result i need. 1. I cant SAVE THE QUERY? where on earth...
4
by: Ann | last post by:
I'm in a very frustrated situation now regarding to use jsp or asp.net. I'm a VBA programmer. Some of our web pages related with databases were setup in kind of old way , that is, in Access...
10
by: Don Wash | last post by:
Hi! I'm pretty frustrated learning ASP.NET. I'm learning ASP.NET by downloading samples from various ASP.NET websites and none of the samples worked so far. The SAME error was shown whenever I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.