c# - NumericUpDown Control is not in my list of available controls in Visual Studio 2015 (Community) -


i'm learning c# , following tutorial.

the tutorial written vs2013, doing in vs15 (community). says drag numericupdown object in toolbox in designer window not listed. i've tried right clicking , looking in "choose items" dialog and, in fact, numericupdown listed , checked doesn't show in toolbox list. google searches i've found have people saying shows grayed out, mine isn't there, let alone grayed out. i'm working in wpf project.

any suggestions?

since wpf doesn't have standart numericupdown element have create 1 ourselfs:

below posted sample, original here: codeproject

 <grid margin="1">     <grid.columndefinitions>         <columndefinition width="*" />         <columndefinition width="20" />     </grid.columndefinitions>      <textbox name="textboxvalue"              textalignment="right"              grid.column="0"/>     <stackpanel orientation="vertical"     grid.column="1"     verticalalignment="center">         <button name="btnincrease"                 click="increase">             <image source="images/up.png" height="3" width="5"  />         </button>         <button name="btndecrease"                 click="decrease">             <image source="images/down.png" height="3" width="5" />         </button>     </stackpanel> </grid>  

this create textbox 2 buttons on right side up/down arrows(dont forget images buttons)

the easiest way implement this, build class , add youre toolbox. after did can use numericupdown control basic winform application.

but have write code behind this.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -