By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

stop user input while popup is not answered

P: 1
hi there!
have a stupid question but I can't finde the solution on the internet...

Iíve made a simple console app that gives a message box with the user input.

The problem is if I click the console wile the pop up is still showing and type whatever I want, the console don't ignore the input.
If I click ok after, I see al the things that I typed and even if I pressed enter wile the pop up was showing, thatís all done too...

How can I prevent that the user types into the console window when the pop up is showing?
Thanks for reading, hope you can help me.



'########code########
Module Module1
Sub Main()
Console.ForegroundColor = ConsoleColor.Green
Console.WriteLine("Type your message:")
MsgBox(Console.ReadLine, vbSystemModal + vbApplicationModal)
Console.ResetColor()
Console.WriteLine("Type next message:")
Console.ReadLine
End Sub
End Module
'########code########
Jun 17 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.