I am experiencing the most peculiar thing. The InputBox from Microsoft.VisualBasic is broken and does not seem to work at all on my Windows 10 machine. No matter what I try it will not show up.
When I compile the following code and run it on my system, nothing happens and the program just seems idle but does not quit.
using Microsoft.VisualBasic;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
Interaction.InputBox("Prompt", "Title", "Default", -1, -1);
}
}
}
It does not throw any type of exception. Code after the InputBox does not run because the InputBox is synchronous. It seems as if the dialogue is simply not rendered visible.
Navigating using ALT+TAB there is no InputBox anywhere either.
It works fine on every other Windows system. When I copy the executable to one of my servers it behaves like expected.
I tried changing the target .NET framework version without any success. The InputBox.exe from https://www.robvanderwoude.com/dialogboxes.php#InputBox does not work either. It doesn't matter if I use C# or VB, neither work.
What am I not seeing?
EDIT
Apparently it takes about 20 (!) seconds for the InputBox to show. I guess I never waited that long. This is still unacceptable though, why would it take that long? This is a fairly fast system, nothing else lags like that.