in c# a label that displays info, then when clicked it opens firefox and searches for the info displ

Posted by NightsEVil on Stack Overflow See other posts from Stack Overflow or by NightsEVil
Published on 2010-06-03T21:27:08Z Indexed on 2010/06/03 21:34 UTC
Read the original article Hit count: 244

Filed under:
|

hey i have a label that displays graphics card name and make and stuff and i'm working on having it so that when its clicked, it opens Firefox and searches Google for the info found by "name" i tried using let met Google that for you but it searches for like each work individually well this is what iv tried so far and it kinda works but there's something wrong

private void label13_Click(object sender, EventArgs e)
         {
             ManagementObjectSearcher Vquery = new ManagementObjectSearcher("SELECT * FROM Win32_VideoController");
             ManagementObjectCollection Vcoll = Vquery.Get();
             foreach (ManagementObject mo in Vcoll)
             {
                 System.Diagnostics.Process CcleanerA = System.Diagnostics.Process.Start(@"C:\Program Files (x86)\Mozilla Firefox\firefox.exe", "http://google.com/?q="+(mo["name"].ToString()));
             }
         }

© Stack Overflow or respective owner

Related posts about c#

Related posts about label