public static void Main(string[] args){
SearchGoogle("Test");
Console.ReadKey(true);
}
static void SearchGoogle(string t){
Process.Start("http://google.com/search?q=" + t);
}
Is there any way to hide the browser, so it won't pop up??
Something like:
ProcessStartInfo startInfo = new ProcessStartInfo("http://google.com/search?q=" + t);
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(startInfo);
Perhaps you are looking for ProcessStartInfo.CreateNoWindow ?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With