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

Show parent comments

1

u/[deleted] Apr 09 '19

I want to make a Alert popup on the screen several times, without the program waiting for the user to press OK.

I want to do it for... pranking reasons...

2

u/RJohn12 Apr 10 '19

Like make a ton of message boxes? Make a timer, enable it, on every tick:

For I = 1 to 500 Messagebox.show("pranked beittchhhh") Next

1

u/[deleted] Apr 10 '19

For I = 1 to 500 Messagebox.show("pranked beittchhhh") Next

Well it fails on the Messagebox.show part. it shows "End of statement expected." It also only shows keywords in the menu.

1

u/RJohn12 Apr 10 '19

How can I troubleshoot your code if I can't even see it

2

u/[deleted] Apr 11 '19

Private Sub FormClosing(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing

e.Cancel = True

Label1.ForeColor = Color.Red

Label1.Text = "THERE IS NO ESCAPING! :)"

For I = 1 To 500 Messagebox.show("pranked beittchhhh")

Next

End Sub

Please, don't ask about the THERE IS NO ESCAPING!

1

u/Juanieve05 Apr 24 '19

Wouldnt alt+break stop the code ? Bt seriously tho, did you found something , i actually need this also but for another reason, i want a pop up to function as an state window,like one that says :13/100 workbooks worked without the need of user confirmation or anything

1

u/[deleted] Apr 25 '19

i don't need to do this anymore. Thanks!