473,624 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Delays "Sleep)

Lou
How can I add a delay in my code.
I used to use "Sleep" in VB6
-Lou
Nov 21 '07 #1
2 1678
System.Threadin g.Thread.Sleep( t) where t is in milliseconds.

"Lou" wrote:
How can I add a delay in my code.
I used to use "Sleep" in VB6
-Lou
Nov 21 '07 #2
On Nov 20, 7:21 pm, "Lou" <lou.gar...@com cast.netwrote:
How can I add a delay in my code.
I used to use "Sleep" in VB6
-Lou
You might use either MSDN, Google, or even the Object Browser to
search for things before posting. "Sleep" should have shown up in all
three as viable .Net solutions to add delays to your code.

Thanks,

Seth Rowe
Nov 21 '07 #3

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

Similar topics

0
1332
by: roisin | last post by:
In a previous post I was advised (thanks for that Mark Schupp) to execute net send commands from a .bat file rather than an ASP page - so I have written a a script in my web page that will dynamically create a .bat according to the options a user chooses (basically picking from a list of users to whom they want to send a message). However, if they pick everyone and a couple of those users are logged off, the script delays for up to a...
3
2616
by: rajiv04 | last post by:
Hi all I want to have delays while calling the method(which basically displays the information).I am using MSVC++. How can I achieve that? Any clues pls...... I have an idea that in Java we can use sleep() for threads but what abt in c++? In other words I want a method to be called after a particular time interval ..may be few seconds interval...
3
1744
by: FrankEsser | last post by:
Hello! I am not an expert on C++ programming and therefor I have a question: We use a kind of communication server that was written in C++ especially for our company. It just takes incoming socket requests, connects, evaluates incoming data packages and gives them to certain plug-ins adressed in the frame of the data packages. For each data package management an own thread is started. The data packages can arrive faster than the...
3
2042
by: Jan Moravec | last post by:
Hi, I have written a Java UDF for DB2 and registered it using the following params: CREATE FUNCTION arsu_bit_value ( varchar(32) for bit data, integer ) RETURNS INTEGER EXTERNAL NAME 'ch.ips.g2.db2.ch.ips.g2.db2.ARSU_BIT_VALUE!arsu_bit_value' LANGUAGE java PARAMETER STYLE db2general DETERMINISTIC NOT FENCED NOT NULL CALL NO SQL NO EXTERNAL ACTION SCRATCHPAD
0
1073
by: Krzysiek | last post by:
Hi, I have the application (VB6 using RDO) dealing with MSAccess database. This application use/prints reports build on CrystalReport. Report data are fetched from AS400 (via ODBC) and put in MSAccess *.mdb file. In order to build and then print report, application goes for data only to a local db. On some PCs all information on the report are shown in a proper way but on some others there are lacks. I mean the very first data are...
18
9808
by: barry | last post by:
I'm having a problem creating a delay before each list item gets moved ( http://www.polisource.com/PublicMisc/list-splitter-timeout-bug.html ). Choose any number of columns, vertical layout, and view as a web page. They'll be a small delay before the entire bunch of list items converts from left-to-right to top-to-bottom order. I expected a delay before each item is moved. It looks like I have to flush the buffer to get setTimeout to work,...
3
1315
by: eager | last post by:
Hi dear friends What i want to ask about now is about delays in vb.net . i want to write a program which displays different images in to a picture box every 2 secs so if u can send me any function u r very welcome.
1
1836
by: ElenaB | last post by:
Hi, I have an application that needs to create and copy files in multiple locations that can be share folder on the network. I'm using System.IO.Directory.Exists() method to determine if directory is exist before I do the work. If some machine is down (I just unplug network cable for testing) at this moment this method always returns false that what expect, but on my machine it returns almost right away and on other system it delays for 30...
8
2211
by: mrcw | last post by:
I'm trying to make a timer which is a reusable module. Is this possible? I would like to pass 1 argument to the timer. The argument is the delay that the main program waits before it continues. The main program would be something like start do something (process 1) pass argument ( delay time eg 2 sec) to timer after timer has timed out program continues do something (process 2) pass argument ( delay time eg 1 sec) to timer
0
8236
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8173
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8679
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8475
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7159
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.