Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4611806
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:19:04+00:00 2026-05-22T01:19:04+00:00

I want to create a small delay so that my 1st set of codes

  • 0

I want to create a small delay so that my 1st set of codes run smoothly.

How can I do that in vb.net ?

Edit 1

Suppose I have a few lines of code like this

..................Statement Line 1..............
..................Statement Line 2..............
..................Statement Line 3..............
..................Statement Line 1..............
..................Statement Line 5..............

WAIT UNTIL STATEMENT 5 IS COMPLETED

..................Statement Line 6..............
..................Statement Line 7..............
..................Statement Line 8..............
..................Statement Line 9..............
..................Statement Line 10.............

Only when the execution of first five statements are complete then only the next five can be executed

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:19:04+00:00Added an answer on May 22, 2026 at 1:19 am

    Are you looking to make a thread sleep?

    Thread.Sleep(100);

    Where 100 is the number of millisecond you want the thread to sleep for.

    Also make sure to have Imports System.Threading, which I assume you have if you already have multiple threads.

    EDIT: Okay, so you’ve added a bit of code. Still, this should come down to whether you have more than one thread running, and from your question it looks like it’s all in one thread. In this case, statement 5 will always finish first before statement 6 runs. That’s how code works. The only case where it wouldn’t would be if one of statements 1-5 spawns something on a new thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a small sample app that can read my employee badge
I want to create a small helpdesk ticket control system at work, that would
I want to create a small program in C# in Windows that would open
I want to create user profile with image. That user can upload his photo,
I want to create a small application that will be able to recognize sound.
I want to create a small database for my inventory but I have some
I'm trying to create a small javascript framework that can make it easier when
I want to create my small html editor with using html5 <section contenteditable=true> Edit
I have 4 small JPEG images (40px x 30px) and I want create an
I want to create a small Java application that will be capable of simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.