cant login using System.Diagnostics.Process.Start

Posted by omair iqbal on Stack Overflow See other posts from Stack Overflow or by omair iqbal
Published on 2010-05-21T13:04:05Z Indexed on 2010/05/21 13:10 UTC
Read the original article Hit count: 313

Filed under:
|

i am tying to login using System.Diagnostics.Process.Start

private void button1_Click(object sender, EventArgs e)

        {
        System.Diagnostics.Process.Start("iexplore","[email protected]","password","http://www.gmail.com");

    }

but visual studio gives me these 2 errors: Error 1 The best overloaded method match for 'System.Diagnostics.Process.Start(string, string, System.Security.SecureString, string)' has some invalid arguments C:\Documents and Settings\Omair\My Documents\Visual Studio 2008\Projects\WindowsFormsApplication3\WindowsFormsApplication3\Form1.cs 21 13 WindowsFormsApplication3

and

Error 2 Argument '3': cannot convert from 'string' to 'System.Security.SecureString' C:\Documents and Settings\Omair\My Documents\Visual Studio 2008\Projects\WindowsFormsApplication3\WindowsFormsApplication3\Form1.cs 21 80 WindowsFormsApplication3

note: i am brand new to c# and reletively new to the world of programming sorry for my english

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET