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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:24:35+00:00 2026-05-27T14:24:35+00:00

I am running into a strange problem and seem to have to hunted down

  • 0

I am running into a strange problem and seem to have to hunted down to the following root cause.
Environment C# (.NET 2.0):

My code is using some vendor’s framework and at one time opens a modal dialog. It seems that the framework is filtering on the Application’s “Enter” Keypresses (probably by implementing IMessageFilter). As a consequence, closing my dialog by pressing the “OK” button leads to strange behaviour – closing via mouse-click on “OK” works fine.
Changing the framework’s code is unfortunately not an option. So I’d like to disable that the framework notices “Enter” (and probably “ESC”) keypresses in my dialog. Does anyone know how this can be done?

EDIT:

I “solved” the issue. Please refer the Accepted Answer below.

  • 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-27T14:24:36+00:00Added an answer on May 27, 2026 at 2:24 pm

    I “solved” the issue. Here’s the solution for future reference: setting the Form’s (which was created in the modal dialog) FormBorderStyle property to FormBorderStyle.FixedDialog resolved the issue. Yes, this is a typical case of Cargo-Cult-Programming, but after thorough testing the fix works reliably.

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

Sidebar

Related Questions

I'm running into a strange problem. In the following sample code, if I set
I'm running into a strange problem when using unittest.assertRaises . When executing the code
I'm running into a strange corner-case while querying an iSeries server using ADO.NET and
i'm running into a strange problem in Microsoft SQL Server 2008. I have a
I'm writing a simple program using SDL, but I'm running into a strange problem.
I'm running into a strange problem using the Toplink implementation of JPA. I'm writing
I'm running into a really strange problem with WCF. I have 2 projects in
I'm running into a strange problem with testing an object's visibility with jQuery. I
I'm running into some strange machine/OS dependent GZipStream behavior in .NET 4.0. This is
Running into a problem. I have a table defined to hold the values of

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.