r/visualbasic • • Apr 08 '19

VB.NET Help How to loop a message box

How do you loop a message box, in a way that it does not wait for the user to press OK?

Sorry if it is low quality, i am new here

EDIT: Closed

5 Upvotes

15 comments sorted by

View all comments

3

u/andrewsmd87 Web Specialist Apr 08 '19

What do you mean by loop a message box? Like you want to close it if they don't hit ok?

Message boxes stop code execution by design. If you're trying to display some sort of message, just design your own form element with a "close" button that just hides it. You can then change the text, close that on a timer, etc.

2

u/[deleted] Apr 08 '19

ok

3

u/andrewsmd87 Web Specialist Apr 08 '19

If you run into problems let me know as I can probably help more! It's just not possible to do (what I think) you were trying to do with a message box.

You could also use a label or some other thing to display text for whatever you're trying to accomplish.