1
Answer

code to get info then open a webpage based on that info on click but opens it twice why?

Ask a question
Alex

Alex

14y
1.9k
1
i have this piece of code which works great except it searches Google twice in 2 tabs sometimes 2 windows.. whys that? and how can i fix it?

              {
                 
ManagementObjectSearcher Vquery = new ManagementObjectSearcher("SELECT * FROM Win32_VideoController");
                 
ManagementObjectCollection Vcoll = Vquery.Get();
                 
foreach (ManagementObject mo in Vcoll)
                 
{
                     
System.Diagnostics.Process.Start("http://www.google.com/search?hl=en&q=" + mo["name"].ToString());
                 
}


Answers (1)