how do you pause the output

ya just starting and i was wondering whats a quick command to pause the screen for 5 seconds or so .. or something like getch(); in c++
i'm just starting to use visual basic if you can't tell lol

Comments

  • : ya just starting and i was wondering whats a quick command to pause the screen for 5 seconds or so .. or something like getch(); in c++
    : i'm just starting to use visual basic if you can't tell lol

    The rough equivalent is MsgBox. It will stop execution until the user closes the dialog.
    [hr]
    [green]Rod Stephens[/green]
    Join the VB Helper mailing list at http://www.vb-helper.com/newsletter.html


  • Using a MsgBox like Rod mentioned is a very crude way of achieving your goal. You can use the Sleep API which is located in Kernel32.dll

    It's a sub and NO FUNCTION and it's argument is the number of milliseconds in a long.

    I assume you know how to deal with API's??? No? Then tell and i'll tell you!


    : : ya just starting and i was wondering whats a quick command to pause the screen for 5 seconds or so .. or something like getch(); in c++
    : : i'm just starting to use visual basic if you can't tell lol
    :
    : The rough equivalent is MsgBox. It will stop execution until the user closes the dialog.
    : [hr]
    : [green]Rod Stephens[/green]
    : Join the VB Helper mailing list at http://www.vb-helper.com/newsletter.html
    :
    :
    :

    [HR]
    [CODE]
    Wot tinkst no wol wr fn my?
    Do mast dy in kear dyn stomme bek tigt hlde.
    Oars mat ik mem Jelsma es op dy wstjoere!
    [/CODE]
    [HR]

  • : Using a MsgBox like Rod mentioned is a very crude way of achieving your goal. You can use the Sleep API which is located in Kernel32.dll

    Actually MsgBox is exactly analogous to getch in a console application. Sleep waits for a predetermined number of milliseconds so the user can't control when it finishes. You can also pause using a Timer without using the API, though it's easy to argue [blue]that's[/blue] crude.

    [hr]
    [green]Rod Stephens[/green]
    Join the VB Helper mailing list at http://www.vb-helper.com/newsletter.html


  • Dah, let's keep it this way then shall we?

    : : Using a MsgBox like Rod mentioned is a very crude way of achieving your goal. You can use the Sleep API which is located in Kernel32.dll
    :
    : Actually MsgBox is exactly analogous to getch in a console application. Sleep waits for a predetermined number of milliseconds so the user can't control when it finishes. You can also pause using a Timer without using the API, though it's easy to argue [blue]that's[/blue] crude.
    :
    : [hr]
    : [green]Rod Stephens[/green]
    : Join the VB Helper mailing list at http://www.vb-helper.com/newsletter.html
    :
    :
    :

    [HR]
    [CODE]
    Wot tinkst no wol wr fn my?
    Do mast dy in kear dyn stomme bek tigt hlde.
    Oars mat ik mem Jelsma es op dy wstjoere!
    [/CODE]
    [HR]

  • Ya thats sorta what i was looking for can you explain in more detail???
    i'm not sure about API's

    : Using a MsgBox like Rod mentioned is a very crude way of achieving your goal. You can use the Sleep API which is located in Kernel32.dll
    :
    : It's a sub and NO FUNCTION and it's argument is the number of milliseconds in a long.
    :
    : I assume you know how to deal with API's??? No? Then tell and i'll tell you!
    :
    :
    : : : ya just starting and i was wondering whats a quick command to pause the screen for 5 seconds or so .. or something like getch(); in c++
    : : : i'm just starting to use visual basic if you can't tell lol
    : :
    : : The rough equivalent is MsgBox. It will stop execution until the user closes the dialog.
    : : [hr]
    : : [green]Rod Stephens[/green]
    : : Join the VB Helper mailing list at http://www.vb-helper.com/newsletter.html
    : :
    : :
    : :
    :
    : [HR]
    : [CODE]
    : Wot tinkst no wol wr fn my?
    : Do mast dy in kear dyn stomme bek tigt hlde.
    : Oars mat ik mem Jelsma es op dy wstjoere!
    : [/CODE]
    : [HR]
    :
    :

  • Ok

    Declare the thing in some object module. By doing:

    Public Declare Sub Sleep Lib "Kernel32" (lngMilliseconds as long)

    Now you can (if its ok) from everywhere in the code, call the sub and give it some milliseconds like:

    Sleep 50

    Got it?

    Good luck!!


    : Ya thats sorta what i was looking for can you explain in more detail???
    : i'm not sure about API's
    :
    : : Using a MsgBox like Rod mentioned is a very crude way of achieving your goal. You can use the Sleep API which is located in Kernel32.dll
    : :
    : : It's a sub and NO FUNCTION and it's argument is the number of milliseconds in a long.
    : :
    : : I assume you know how to deal with API's??? No? Then tell and i'll tell you!
    : :
    : :
    : : : : ya just starting and i was wondering whats a quick command to pause the screen for 5 seconds or so .. or something like getch(); in c++
    : : : : i'm just starting to use visual basic if you can't tell lol
    : : :
    : : : The rough equivalent is MsgBox. It will stop execution until the user closes the dialog.
    : : : [hr]
    : : : [green]Rod Stephens[/green]
    : : : Join the VB Helper mailing list at http://www.vb-helper.com/newsletter.html
    : : :
    : : :
    : : :
    : :
    : : [HR]
    : : [CODE]
    : : Wot tinkst no wol wr fn my?
    : : Do mast dy in kear dyn stomme bek tigt hlde.
    : : Oars mat ik mem Jelsma es op dy wstjoere!
    : : [/CODE]
    : : [HR]
    : :
    : :
    :
    :

    [HR]
    [CODE]
    Wot tinkst no wol wr fn my?
    Do mast dy in kear dyn stomme bek tigt hlde.
    Oars mat ik mem Jelsma es op dy wstjoere!
    [/CODE]
    [HR]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories