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 6836387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:20:58+00:00 2026-05-26T23:20:58+00:00

I have a small report/logging application written in C#.NET 4.0 and WPF that I

  • 0

I have a small report/logging application written in C#.NET 4.0 and WPF that I would like to have users authenticate against an existing database table. I’ve come up with a general idea of how things might work out. I’m hoping to get some input or clarification on what to actually use to accomplish this.

So I suppose I will need to connect to the database and query agianst the input. I’ve already done some work with LINQ on Objects. So I think the query itself wont be that difficult. Although I will probably have to create a user with priveledges to do so.

I wondering how I would connect to the database and also how would I enter and store the database connection information (it may change from system to system).

I’m guessing the configuration file would be a xml file and I can store all of my necessarily information in that.

Lastly I’m wondering what the best way to have the Login / Password screen displayed. Should I make a pop-up that shows when the application is first run and then hide it after wards and set the Application to visible ?

Any Ideas or Guidance would be greatly appreciated.

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-05-26T23:20:59+00:00Added an answer on May 26, 2026 at 11:20 pm

    To connect to MySql you would need to use the Mysql Connector for .NET. Then you would need to put a connection string into your App.config file similar to the following:

    <connectionStrings>
      <add name="MySqlConnectionStringName" 
           connectionString="Server=myServerAddress;Port=1234;Database=myDataBase;Uid=myUsername;Pwd=myPassword;" 
           provider="MySql.Data.MySqlClient.MySqlConnection" />
    </connectionStrings>
    

    Then you could use ADO.NET to issue your SQL queries. I’m not sure that you’ll be able to use Entity Framework to execute LINQ queries. You can find more info on the connection string here.

    As for the login screen, you can pop it up while you load your main UI layout in the background. This is fairly standard behavior.

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

Sidebar

Related Questions

I have this report that I generate in an aspx page. I would like
I have written a small GUI based vb.net program that speaks to embedded devices
I have small web app that generate PDF files as a report. I'm trying
I have small problem with my .net 2.0 winforms application. I want to embed
I have an application that I know would make a great cube and would
In my asp.net application, I am trying to open a particular report. I have
I have this small testcase: http://jsfiddle.net/sV8js/ You can see that in Chrome (tested on
Using .NET 4.0, I have a small ASP.NET app that utilized the ReportViewer object,
I have a small, custom crafted HTML report, not using any reporting engine, for
have small problem, and would very much appreciate help :) I should convert byte

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.