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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:14:56+00:00 2026-06-17T07:14:56+00:00

I have a button click wich i click on and it open a new

  • 0

I have a button click wich i click on and it open a new Form.

Then i can click on the new Form listBox and everything.

Now when i want to back to the Form1 and click there on the menu or a button i need to click on it twice since the control/focus was on the new opened Form.

What’s the best way to bring back the focus/control to Form1 without clicking on it first ?

Maybe to use an event that if i move the mouse over Form1 area it will bring the focus/control to the Form1 ?

This is how im doing to open/show the new Form:

if (toolStripComboBox2.SelectedIndex == -1 && toolStripComboBox1.SelectedIndex == -1)
{
}
else
{
    Lightnings_Extractor.Lightnings_Mode lightningsmode1 = new Lightnings_Extractor.Lightnings_Mode(this);
    lightningsmode1.Show();
}

I want to make that even if the new Form is open without closing it im moving back to Form1 so the control/focus will be on Form1. And also if im closing/exiting the new Form so the control/focus will be on Form1 automatic without the need to click on it area first.

  • 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-17T07:14:58+00:00Added an answer on June 17, 2026 at 7:14 am

    You could use a MouseEnter event to detect when the mouse is over the form. To make it gain focus, you just need to use This.Focus() to bring it to the front.

    EDIT:
    The code would be in form1; The form you want to give focus to.

    Hope this helps you!

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

Sidebar

Related Questions

I have this button click code wich is working now: private void button6_Click(object sender,
I have a button on click of which i want to either show/hide a
Add New Row in GridView winform on Button Click. Need to have single button
I have a checkout-button on my site wich dynamicly loads the form where the
I have button on form2. i want when user click this button make something
Android multiple button click I have a button and I want on the button's
I have a button that I want to click (in my case this is
I have a PayPal pay now button. If I click it - a POST
i have button click handler event in which i am using if-else condition.How can
I have a button click event handler with a switch case in it that

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.