Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-17-2005, 02:46 PM   #1
Registered: Jul 2004
Posts: 60

Rep: Reputation: 15
Pause Execution in VB


Im using Vb6, and was wondering if there's a way to hault/pause execution of a program? I know in Java I could used Thread.sleep(), but im fairly new to VB6, so ....

Would appreciate any help.

Old 08-17-2005, 06:34 PM   #2
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
The Win32 API has a sleep function. The declare statement looks something like this:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
You would call it like this:
Sleep 1000
Old 08-17-2005, 07:17 PM   #3
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
It's been awhile since I've used VB6, but if I recall, there is a native Sleep command as well...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pause how to bruse Linux - Newbie 1 07-21-2005 03:58 AM
sleep() looking for a way to pause execution for fractions of a second qwijibow Programming 3 02-20-2005 03:38 AM
Pause qcoder Programming 3 04-24-2004 04:53 PM
RH & HP4050N PCL - page, pause, page, pause, page andguent Linux - Hardware 0 11-10-2003 09:35 AM
XMMS Pause Crickit Linux - Software 17 04-25-2003 01:10 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration