473,466 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Delays

15 New Member
HI DEAR FRIENDS
I want a delay of 20 seconds in my program . how am i able to make a delay of such kind?
Apr 9 '07 #1
5 943
channaJ
67 New Member
HI DEAR FRIENDS
I want a delay of 20 seconds in my program . how am i able to make a delay of such kind?
Hi eager,

You can delay the current thread using the following code.

Expand|Select|Wrap|Line Numbers
  1. Thread.Sleep(20000);
The thread class is in the namespace System.Threading
Apr 9 '07 #2
nmsreddi
366 Contributor
Hello

What actually you mean Delay,you want you application process should stop for a while for ,only a particular functionality to be delayed while the other application should work, if you want to stop your complete process then you can use sleep(); else you have to code your self for a particular procedure.
Apr 10 '07 #3
gomzi
304 Contributor
Hello

What actually you mean Delay,you want you application process should stop for a while for ,only a particular functionality to be delayed while the other application should work, if you want to stop your complete process then you can use sleep(); else you have to code your self for a particular procedure.
suppose i want only a part of my page to do a postback after some amount of elapsed time, then how should i approach it?
Apr 10 '07 #4
eager
15 New Member
hi again
i am doing a project in vb.net and i need a code to display different pics in a picture box every 20 seconds ?
Apr 11 '07 #5
nmsreddi
366 Contributor
Hello

If its a web application you can use directly add rotator

to do this in windows application i think timer control is usefull to solve your

problem ,keep the interval property as much as you need ,and code in timer

tick event so that after every particular event of time your logic will be executed

i hope this is useful for you .

Good Luck
Apr 11 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
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...
3
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...
3
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...
3
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...
0
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...
4
by: Ranald Davidson via AccessMonster.com | last post by:
Pardon my ignorance but is there any easy way to pull information out of a table in Eastern Standard Timen that is currently stored using a different time zone. Any suggestions would be appreciated....
18
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...
3
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...
1
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...
2
by: Lou | last post by:
How can I add a delay in my code. I used to use "Sleep" in VB6 -Lou
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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
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,...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.