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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:09:50+00:00 2026-05-31T23:09:50+00:00

When I disabled Numeric UpDown control I want that user can still read its

  • 0

When I disabled Numeric UpDown control I want that user can still read its value. But I can’t change Forecolor or Backcolor of that tool. I try to use ReadOnly property instead of Enabled/Disabled property but it doesn’t worked either. How can I solve this problem?

  • 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-31T23:09:51+00:00Added an answer on May 31, 2026 at 11:09 pm

    I just tried via VS2005 and simple WinForms. I put in the EnableChanged event

    private void numericUpDown1_EnabledChanged(object sender, EventArgs e)
    {
       NumericUpDown nud = (NumericUpDown)sender;
       nud.BackColor = nud.Enabled ? Color.Yellow : Color.Red;
    }
    

    and added another button to the form to just swap its enabled state

    private void button2_Click(object sender, EventArgs e)
    {
       this.numericUpDown1.Enabled = ! this.numericUpDown1.Enabled;
    }
    

    If you create your own NumericUpDown class derived from the base NumericUpDown class and put it within the that, it will do for all instances of YOUR class used in your app without explicitly doing this color changing in every form.

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

Sidebar

Related Questions

I have chmod() disabled on my server, but I still want users to be
As JavaScript can be disabled in the browser by the user, I wonder if
I've disabled validateRequest in my web.Config, but the app is still firing the error:
I have a disabled text field that I want to become enabled when I
I disabled magic_quotes in my php.ini. But I still get escaped strings in my
i disabled safe_mode by off value and tried with shell_exec(),exec() both functions on 1and1
Our network admins have disabled IMAP and POP for our exchange server, but do
MSDTC is disabled by default (windows 2003 - onwards) and I want to have
i have disabled all the checkboxes except one. On click of that checkbox i
I am trying to set the disabled font characteristics for a Label Control. I

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.