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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:20:57+00:00 2026-06-01T17:20:57+00:00

I have comboBox where user can choose sql database view e.g. basicView, fullView etc.

  • 0

I have comboBox where user can choose sql database view e.g. basicView, fullView etc.
One of the view is adminView. When user choose adminView new form (form2) is opening and he have to login.
In form1 I have method showDB(string command) which shows View in dgv. But how to do this method after login in form2? Any idea?

  • 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-01T17:20:58+00:00Added an answer on June 1, 2026 at 5:20 pm

    You should dedicate form2 to the login process and, if everything goes well, return DialogResult.OK.

    For example in Form1:

    using(Form2 frm = new Form2())
    {
        if(DialogResult.OK != frm.ShowDialog(this))
        {
            // Inform the user or simply exit from this method
        }
    }
    // Login OK go on to show the info requested
    

    In Form2 you should have a button with the property DialogResult set to OK.
    when the user press this button do your logic to check the login credentials given.
    If the credentials are good don’t do anything, the form will close by itself
    otherwise

    // give a message to the user
    this.DialogResult = DialogResult.None;
    

    and the form2 will stay opened to let a retry to your user.

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

Sidebar

Related Questions

I have a Combobox where user can choose an icon. I'd like the dropdown
I have a form in which the user can choose a component type from
I have a combobox on a web form. The user can select a single
I have a ext.form.Combobox object that is dynamically populated by ext.data.JsonStore. The user can
I have a combobox bound to a collection, so the user can select one
I have a user control with a combobox, and so I can edit its
I have a combobox bound to a database table. When the user inserts a
I have form with user defined filters ( combobox with column names, combobox with
I have a combobox and it's editable. So the user can select an item,
I have a winform containing a DropDown combobox, where the user can enter a

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.