[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1005
  • Last Modified:

NUmeric up/down control c# windows from

hi
iwant to limit the number of characters to be entered to only 3 digits in numeric up/down control i cant find the properties to set the maximum length of characters to 3
thanks
0
kranthi4uonly
Asked:
kranthi4uonly
  • 2
1 Solution
 
J1H1W1Commented:
Set the maximum to 999.
0
 
anyoneisCommented:
Well, this is a little freaky, and would likely need to be garnighed with at comment or two, but:

((TextBox)numericUpDown1.Controls[1]).MaxLength = 3;

:-David
0
 
anyoneisCommented:
Or "garnished."
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now