SQL Welcome back USERNAME C# (2 questions) RRS feed

  • Question

  • 1st question:

    I am fairly new to C# and am having difficulties! You see, i want it that when someone clicks a button it should show 'Welcome back' then the username! If you can help me with this, i will be thankful!

    2nd question:

    As i said i'm new to C# and need help. Well, i want it to save that someone logged in on this PC, so the user does not have to login again and again. If you can help me with this than thank you.

    Wednesday, December 5, 2018 6:08 PM

All replies

  • Question 1

    Unfortunately what you're talking about is a UI and this is the C# forum. We only answer questions related to C# itself. For questions related to UI stuff please post in the appropriate forums. We can move this thread to some forums such as Winforms or WPF. For ASP.NET applications you'll need to post in https://forums.asp.net.

    Question 2

    I'm not sure I follow what you're asking here. You want a user to log in to Windows once and then never have to log in again. They auto login? That isn't something that C# can do as that would require running code inside the secure area of the kernel. In fact I don't know any way to do that other than the standard auto-login functionality that Windows already has. You can certainly write an app to set that information (assuming permissions are valid) but Windows itself would handle the login process from there.

    If you are instead referring to the ability to write a program and then use the user's credentials when connecting to a database or something like that then this works already just be being a Windows application. The process runs in the context of the logged in user so things just work.

    Michael Taylor http://www.michaeltaylorp3.net

    Wednesday, December 5, 2018 7:26 PM