简体   繁体   English

C#PropertyGrid键侦听器

[英]c# propertyGrid key listener

I have a propertyGrid; 我有一个propertyGrid; PropertyGrid contains lots of properties storing number values; PropertyGrid包含许多存储数字值的属性。 What I want to do is to enter one of those properties and instead of writing new number in it, by pressing arrows UP/DOWN increase/decrease its value. 我想做的是输入这些属性之一,而不是在其中输入新的数字,而是通过按UP / DOWN箭头来增加/减小其值。

Any ideas on how to handle that? 关于如何处理的任何想法?

You need to implement your UI Type Editor. 您需要实现UI Type Editor。
Look at this MSDN page just to know where to start and to get a valuable example. 查看此MSDN页面只是为了知道从哪里开始并获得有价值的示例。

I had to do a PropertyGrid and I used this library about 1 year ago : http://wpg.codeplex.com/ 我必须做一个PropertyGrid,大约1年前就使用了这个库: http : //wpg.codeplex.com/

I don't remember if it was doing what you want but it was VERY complete ! 我不记得它是否在做您想做的事,但是非常完整! I do remember that on int (for example) you had some and buttons 我确实记得在int(例如)上有一些和按钮

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM