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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:09:25+00:00 2026-06-11T21:09:25+00:00

I have an application with some tooltipped buttons. One of these buttons (henceforth known

  • 0

I have an application with some tooltipped buttons. One of these buttons (henceforth known as the Run button) starts firing processes outside of my application when it is pressed. Because my application needs to get data from output taken from these processes, I am having it pause until all the processes have finished running, then grab the data without further user intervention. Of course, this means my application is hung while the external processes are running, but it’s no big deal because the user can click away and work on other stuff outside my application; my application falls to the background. Unfortunately, the tooltip associated with the Run button does not fall to the background, and it does not go away until my code stops executing.

The following code has helped slightly:

private void RunButton_Click(object sender, RoutedEventArgs e)
{
    /*Gets the tooltip out of the way while running, otherwise it will stay in front of   everything until the optimizers finish.*/
    ToolTipService.SetShowDuration(runButton, 0);
    RunTooltip.IsOpen = false;//Doesn't close fast enough. It fades a little then hangs there until the code stop running. googling has been remarkably unhelpful.
    Run();
    ToolTipService.SetShowDuration(runButton, 5000);
}

RunTooltip is the name of the ToolTip in question. Setting the duration to 0 or setting isOpen to false have the same behavior: cause the tooltip to become translucent (but still above every other window no matter what) until Run() finishes.

Its seems there was a way to make tooltip fading happen instantly with Windows.Forms.Tooltips (see http://msdn.microsoft.com/en-us/library/system.windows.forms.tooltip.usefading.aspx) but that no longer seems to be the case with the WPF tooltip (http://msdn.microsoft.com/en-us/library/ms617634.aspx)

How do I keep this tooltip from getting in the way of whatever the user wants to do while waiting for my application to finish, apart from removing this button’s tooltip entirely?
Thanks

  • 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-11T21:09:26+00:00Added an answer on June 11, 2026 at 9:09 pm

    You could potentially change the Visibility of the ToolTip’s Popup component in your OnClicked event, but you’d have to use the VisualTreeHelper to find the ToolTip and it’s all a bit messy. The UI will still be frozen and it’s not the best way to do this.

    Here’s a rule of thumb: if you are freezing the UI, you are doing it wrong.

    You probably want a busy indicator to wrap your controls (there’s a great one in the WPF Toolkit on codeplex). WPF works best (i.e. cleanest) using the MVVM pattern, but if you’re working directly in the code-behind, something like this:

    void MyButton_Click(object sender, EventArgs e)
    {
        var backgroundThread = new Thread(DoWork);
        this.MyBusyIndicator.IsBusy = true;
        backgroundThread.Start();
    }
    

    And then after the work is done, set the BusyIndicator to no longer be Busy.

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

Sidebar

Related Questions

I have one application containing some text fields and radio button.now I want to
In my application,i have some .strings files.And on a button click,which is on my
In my application I have some link buttons there but when I right click
I have wpf prism application with some modules. One module has folder sounds and
I have wrote some application. But when i run it on several operating systems
I have an application with some JFreeCharts. When I right-click them, one of the
My application have some activities which in the first one I connect a socket
I have an application which uses some Tabs. The functionality of these tabs is
I have an application with some bunch of code like this: errCode = callMainSystem();
I have an application with some in-app purchase in IPhone. Now i want to

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.