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

  • Home
  • SEARCH
  • 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 46607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:59:33+00:00 2026-05-10T15:59:33+00:00

For a project I built a custom DataGridView column which contains NumericUpDown controls. It

  • 0

For a project I built a custom DataGridView column which contains NumericUpDown controls. It is implemented similar to the suggestion from Microsoft

The column works fine under Windows XP. It accepts the entered digits and decimal separator. Under Windows Vista I have the odd problem that the control only accepts the decimal separator entered by the numeric keypad but not from the keyboard main block.

I have to add that I work with German (Switzerland) culture settings under Windows Vista and the German (Switzerland) keyboard layout is activated. The decimal separator in Switzerland is .

Someone has an idea for the reason and maybe a solution? Thank you very much!

Michael

Edit: I found the solution to my problem.

  1. To clarify the situation a little bit more. The NumericUpDown control I use implements IDataGridViewEditingControl and inherits from NumericUpDown. Because of IDataGridViewEditingControl I implement the method EditingControlWantsInputKey. And in the implementation of this method I found my mistake or what went wrong.

  2. In the method I inspected the entered keys and decided if the control had to handle it. But for the decimal separator I only expected Keys.Decimal. In my special (wrong) case the key could not be matched. What was missing was to look for Keys.OemPeriod too. And that was the fix.

  • 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. 2026-05-10T15:59:33+00:00Added an answer on May 10, 2026 at 3:59 pm

    Can you please paste your OnKeyDown and/or OnKeyPress code? At least the relevant key-filtering code. It will make be easier to spot out any problems.

    BTW, I normally use both a British English and Brazilian Portuguese keyboards, so I’ve had my share of these issues. That kind of forces you to become a localization expert 🙂

    Edit: Oh, sorry, just re-read and understood you are using the stock NumericUpDown control. Can you point me out to the column code so I can try it here? Probably the locale is not getting set for the control, and you’ll have to manually do it at some point.

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

Sidebar

Ask A Question

Stats

  • Questions 248k
  • Answers 248k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Running this example in the Scala interpreter with unchecked warnings… May 13, 2026 at 8:57 am
  • Editorial Team
    Editorial Team added an answer Add this to your .htaccess file to have PHP process… May 13, 2026 at 8:57 am
  • Editorial Team
    Editorial Team added an answer Using NSURLConnection, the timeout is set in the NSURLRequest, and… May 13, 2026 at 8:57 am

Related Questions

I am using PHP and the codeigniter framework for a project I am working
I am currently designing a Membership/Profile scheme for a new project I am working
I have built my website in Django. And like any other django project I
I'm having some trouble styling a custom control that I built. Here's the control

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.