Shell team - bring to the fore

I have a program that runs a shell command to do constant ping, but when it starts, it does not bring the cmd window to the forefront.

It seems like he should have some minor fix that I am missing.

The code:

Shell("ping " & IPAddy.Text & " -t")
+1
source share
1 answer
Shell("ping " & IPAddy.Text & " -t", AppWinStyle.NormalFocus)

Use the Style parameter with the AppWinStyle.NormalFocus argument as shown above

MSDN: Shell Function: https://msdn.microsoft.com/en-us/library/xe736fyk(v=vs.90).aspx

+1
source

Source: https://habr.com/ru/post/1683163/


All Articles