0

I have this command:

Process.Start(@"Chrome.exe", "http://192.168.1.2/url.aspx"); 

With this, I can open chrome with an URL, but if the application is already open, this command open a new tab, and I want to avoid this.

I want something like this:

private void button_Click(object sender, EventsArgs e) { if(/*chrome is open*/) { //bring chrome to front and show the already opened tab; } else { //open a new window with url; Process.Start(@"Chrome.exe", "http://192.168.1.2/url.aspx"); } } 

What should I do?

3
  • @HereticMonkey The code shown in that thread doens't work for me, Maybe because chrome? Commented Mar 30, 2021 at 16:25
  • See my answer about this... Commented Mar 30, 2021 at 16:25
  • Edit your question to show how you implemented the answer(s) of the question, and how it didn't work for you. Commented Mar 30, 2021 at 16:28

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.