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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:26:52+00:00 2026-06-11T23:26:52+00:00

I need to make panel visible for specific time after mouse move over other

  • 0

I need to make panel visible for specific time after mouse move over other panel
I have been solving this problem quite long. I tried to use Timer but I wasn’t successful.

This is my code:

 this.MouseHover += new EventHandler(myMouseHover);

   [...]
   //event handler
   private void myMouseHover(object sender, EventArgs e)
        {

                this.prevPanel.Visible = true;
                this.nextPanel.Visible = true;

                /* here I want put timer */

                this.prevPanel.Visible = false;
                this.nextPanel.Visible = false;

        }
  • 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-11T23:26:54+00:00Added an answer on June 11, 2026 at 11:26 pm

    Depending on the type of timer you are using, you need to put the code that will hide your panel in response to the tick event.

    For example, using the System.Windows.Forms.Timer:

    System.Windows.Forms.Timer myTimer = new System.Windows.Forms.Timer();
    
    // form constructor
    public myForm() 
    {
        myTimer.Interval = 1000;    // or whatever you need it to be
        myTimer.Tick += new EventHandler(TimerEventProcessor);   
    }
    
    private void myMouseHover(object sender, EventArgs e) 
    {
         this.prevPanel.Visible = true;
         this.nextPanel.Visible = true;
         myTimer.Start();
     }
    
    private void TimerEventProcessor(Object myObject, EventArgs myEventArgs) {
         myTimer.Stop();
         this.prevPanel.Visible = false;
         this.nextPanel.Visible = false;
    }
    

    There are other timers you could use, but the WinForms timer has the advantage of firing in the UI thread so you don’t need to worry about it.
    One thing to note is that you need to think about what happens if the mouse hover event fires again before the timer expires.

    Finally, if you are using WPF instead of WinForms, you could probably do the whole thing in XAML using animation.

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

Sidebar

Related Questions

I need to make a preference panel with section like this. but what is
I need to make a point in time branch, when we release a new
I need to make a series (1-20) ajax calls and I need to have
Could anyone help me make normal layout in GWT. I need a main panel
I have a situation where i need to create a left panel. My manager
I need to make a Panel focusable in WPF, so that it captures keyboard
I'm stuck - I need to have a Wicket Panel be able to add
I make Panel(layout:Absolute). After, I add Items to Panel. But I can't see that
I need to make a navigation panel that shows only a subset of a
I need to make a collapsible set in which each panel contains a checkbox

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.