NNumericUpDown hiding up/down arrows or make them larger


Author
Message
Lou Laskey
Lou Laskey
Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)
Group: Forum Members
Posts: 24, Visits: 2

When using the NNumericUpDown control on a touch screen, the arrows are not that easy for customers to use even by setting a large font. 

To get around this in the library I am replacing, the numeric control included a property to hide the arrows and I included it in a user control that had arrow buttons of my design.

Yes I could make a user control with a text box and intercept the keys etc to keep the numeric format but I would prefer to use what's already available (if it is) including the numeric formatting.

Any ideas would be appreciated.

TIA,

Lou


Lou Laskey
Lou Laskey
Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)
Group: Forum Members
Posts: 24, Visits: 2

Solved.

After some research I took my User Control (SINumericNev) and replaced the numeric control with a NNumericUpDown (I called it numValue).

My control now has 3 controls on it: the NNumericUpDown and an Increment and Decrement button and used the following code:

public SINumericNev()

{

InitializeComponent();

this.numValue.Controls[0].Visible = false;

}

Along with all the supporting events and properties I exposed.  It is mush easier to use on a touch than either the Nevron or MS numeric control.

 


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hello Lou,

Searching for an answer to your question, I saw that NumericUpDown control (NNumericUpDown is a subclass of NumericUpDown) has internally set the width of up/down button to a constant value, which cannot be changed.

Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search