Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7739555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:33:13+00:00 2026-06-01T08:33:13+00:00

I tried to login to gmail with the code: private void button1_Click(object sender, EventArgs

  • 0

I tried to login to gmail with the code:

private void button1_Click(object sender, EventArgs e)
{
    var user = new SecureString();
    foreach (char c in textBox3.Text)
    {
        user.AppendChar(c);
    }

    Process.Start("C:/Users/Indish/Desktop/chrome",
        "www.gmail.com", user, textBox4.Text);
}

The program says logon failure as mentioned in the question.So, if any one can help ………Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:33:15+00:00Added an answer on June 1, 2026 at 8:33 am

    First of all, you are using the wrong parameters for the overload of the method that you are using. The parameters are:

    Process.Start(fileName, userName, password, domain)
    

    So, you are sending www.gmail.com as user name, and the user name as password, that’s why you get the error message that the login fails.

    You need to use the overload that takes five parameters to send arguments and login to the method:

    Process.Start(fileName, arguments, userName, password, domain)
    

    However, that is used to provide a login for the user account that is used to run the program, not sending the login information to the program.

    If the web page supports it, you can send login information in the URL:

    Process.Start("C:/Users/Indish/Desktop/chrome", user + ":" + textBox4.Text + "@www.gmail.com");
    

    Otherwise you would need to embed a browser control in your program to access the form after it has loaded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After a user has tried to login more often than the consecutive_failed_logins_limit and brute-force
i want to read the mails from gmail account.. i tried to login.. and
I am using Facebook SDK in hackbook and tried to login and do all
I have tried several ways to login to a website through java. I have
Tried something like this: HttpApplication app = s as HttpApplication; //s is sender of
I want to login my gmail and get the contact list automatically with httpClient,
Nothing I've tried can get my code to submit correctly. Can anyone else figure
I have this application where I use Devise and, after login the user is
I have tried to login my server with some fields like username, password, latitude,
I use Gmail and an application that notifies me if I've received a new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.