Solved

How do delay(sleep) in VB.NET?

Posted on 2004-09-06
9
37,604 Views
Last Modified: 2009-10-03
How do delay(sleep) in VB.NET?
0
Comment
Question by:LearnITvn
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 100 total points
ID: 11993287
System.Threading.Thread.Sleep(milliseconds)

0
 

Author Comment

by:LearnITvn
ID: 11993662
Thanks gregoryyoung
see again
0
 
LVL 1

Expert Comment

by:mpantana
ID: 12006380
System.Threading.Thread.CurrentThread.Sleep(milliseconds)
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 12006667
why "CurrentThread" mpantana ? Sleep is a static method of the thread class that suspends whateever thread it is called from.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 1

Expert Comment

by:mpantana
ID: 12008783
Just giving options...
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 12009553
its not an option as you say it ...

public class foo {
    public static bar() { Console.Writeline("test"); }
}

now if I call foo.bar() it is no different than if I say foo f = new foo(); f.bar(); ... correct ?
0
 
LVL 1

Expert Comment

by:mpantana
ID: 12010197
...okay...bottom line, either way will work
0
 

Author Comment

by:LearnITvn
ID: 12023009
what happen???
0
 

Expert Comment

by:cloud_blue_sky14
ID: 23498986
I am creating an application that requires the user to press and hold their left mouse button.  While the left mouse button is pressed, I'd like a rapid mouse click event to happen.  EX: The code would simulate the user clicking and releasing their left mouse button, while the left mouse button is being held down.  When the user releases the left mouse button, the simulated clicking would stop.  Also, I would like to setup a delay between the clicks.  Is this possible? I am using Visual Basic 2008

Thanks in advance for your help and suggestions
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now