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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:21:24+00:00 2026-05-26T20:21:24+00:00

In a project I am working on, I have a ComboBox with dates that

  • 0

In a project I am working on, I have a ComboBox with dates that calculates the persons age depending on certain other criteria elsewhere in the application.

If the user selects a date, we pop up a notification to the user that we changed a few things on the form due to this.

messagebox behind dropdown list

As you can see in the picture, the combobox’s items end up still staying on top of the messagebox when it pops up. The user can still click OK, and can move the box, but this is an odd way to present information to the user.

Is there a way to pop up the message box above this list, or hide the list before the messagebox comes up? I tried setting IsDropDownOpen, but that doesn’t work.

Update: The MessageBox.Show event happens in the selection changed, which is why I figured it hadn’t closed the drop down yet. How could one get around this though?

Update 2: Code I currently have goes like this. ComboBox uses a ‘LostFocus’ event (to handle typing and/or selecting) to call a CheckDOB method. CheckDOB is where I then show the MessageBox

  • 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-26T20:21:24+00:00Added an answer on May 26, 2026 at 8:21 pm

    Well I can’t reprodouce your issue, but I believe that using the Dispatcher can help.

    Try this:

    VB.NET

      Private Sub ComboBox_SelectionChanged(sender As System.Object, e As System.Windows.Controls.SelectionChangedEventArgs)
            'Do what you need..
            Me.Dispatcher.BeginInvoke(Sub()
                                          MessageBox.Show("Message", "Caption", MessageBoxButton.OK, MessageBoxImage.Information)
                                      End Sub)
        End Sub
    

    C#

    private void ComboBox_SelectionChanged(System.Object sender, System.Windows.Controls.SelectionChangedEventArgs e)
    {
        //Do what you need..
         Dispatcher.BeginInvoke(new ThreadStart(() =>
         {
    
             MessageBox.Show("Message", "Caption", MessageBoxButton.OK, MessageBoxImage.Information); 
    
          }));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a WPF project and I have a years combobox that
I have been working on a project that has 2 interfaces - windows forms
I am working a project that does not have a trunk / branches /
I have a project I'm working on where I have a team that is
I've got a django project working on a development server(ubuntu) that we have been
i have one project working greate but in other iphone not working .both are
In an Android project I am working on I have a ListActivity that is
In the project I am working I have deployed a SOAP server using Deployment
In the project I'm working on I have got a list List<Item> with objects
I have started using Linq to SQL for a project im working on and

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.