Timer Control

Timer Control

nucliabrasil
Advocate Advocate
1,207 Views
2 Replies
Message 1 of 3

Timer Control

nucliabrasil
Advocate
Advocate

Hello Experts!
How to use the vba timer so that the system can be activated for a certain time defined by me and then
this time, it automatically deactivates.
Thanks in advance.

0 Likes
1,208 Views
2 Replies
Replies (2)
Message 2 of 3

norman.yuan
Mentor
Mentor

VBA has no timer control built-in (obviously, I assume you are talking AutoCAD VBA. Other VBA may provide something that can be used as "timer", such as in Excel VBA, there is Application.OnTime() method that can be used to play the role of timer). If you have to use some kind of timer inside AutoCAD VBA, you probably need to look into raw Windows API (quite complicated, to most VBA coders), or try to find third party existing component (I'd not hold breath for this, because what you need is 64-bit one).

 

If yo are doing fairly complicated/advanced/mission-critical development with AutoCAD, I'd say. stop waste time on AutoCAD VBA.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 3

nucliabrasil
Advocate
Advocate

You are sure!

I'm migrating to vba and vb6 to vb.net and I believe do not more waste time with vba.

therefore I got a solution.

Thanks to aptention.

0 Likes