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

  • Home
  • SEARCH
  • 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 4087144
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:49:05+00:00 2026-05-20T18:49:05+00:00

is it possible that when i start a windows form application , it automatically

  • 0

is it possible that when i start a windows form application , it automatically picks up the username and password from the credential entered at the starting of the windows and login the user automatically.

  • 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-05-20T18:49:06+00:00Added an answer on May 20, 2026 at 6:49 pm

    Picking up password is never possible as it is a security threat.

    Depending on the language your WinForms application is written in, there might be several methods to get the Username of the user currently logged in.

    In C#, you can get it like this:

    string username = Environment.UserName;
    string domain = Environment.UserDomainName;
    string fullyQualifiedUsername = domain + "\\" + username;
    

    Once, you have the username, you can assume that the user is already authenticated as he is logged in to the machine.

    Hence, you can then bypass ASP.NET Forms authentication by creating a custom page which “logs in” the user obtained above:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.Security;
    using System.Activities.Statements;
    
    public partial class sso : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string username = Request["username"];
            FormsAuthentication.RedirectFromLoginPage(username, false);
        }
    }
    

    You can then call the page thus: http://localhost/sso/sso.aspx?username=Varun+Chatterji

    DISCLAIMER: This is sample code and not meant for production. If you implement a “login” in this fashion using query string alone, you must secure the login by some form of authentication in sso.aspx

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

Sidebar

Related Questions

Is it possible to start other application that are installed on the system with
I'm trying to create a Windows Form application that searches for a string and
I just start learning WPF, is that possible I can create an IE toolbar
Is it possible to select records in a mysql database that does not start
Is it possible to start a program so that it is available to a
I need the DocumentViewer WPF control (for XPS files) in a Windows Form application.
I have an issue with a Windows Forms application that I am creating. The
I am using a System.Windows.Forms.Timer component on an application's main form which checks every
I have a windows form application which needs to be the TopMost. I've set
I'm making a Windows Form project that will search for files in the specified

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.