找回密码
 立即注册

QQ登录

只需一步,快速开始

chenke79
高级会员   /  发表于:2011-7-15 16:20:00
11#
我现在只好加入这个
来允许ctrl+c,ctrl+v

        If e.KeyChar = ""c Or e.KeyChar = ""c Then
            e.Handled = False
回复 使用道具 举报
chenke79
高级会员   /  发表于:2011-7-15 16:20:00
12#
""c
""

我是通过调试键盘输入ctrl+c,ctrl+v
找到这两个字符的

运行结果还正确

但这两个字符是什么字符?.net里有常量吗
回复 使用道具 举报
barrylei
中级会员   /  发表于:2011-7-15 16:25:00
13#
7月19日,我们将发布一个Sp版本,将提供一个新Feature,NumbericUpDownCell 将暴露一个ShowSpinButtonInEditState的属性,在编辑状态下SpinButton将不显示。
如果你不是很紧急的话,可否等这个Build?
Thanks
回复 使用道具 举报
robert
金牌服务用户   /  发表于:2011-7-15 16:53:00
14#
这个Sp是MultiRow6.0版本Sp,不知道这位用户用的是MultiRow6.0还是MultiRow5.0
回复 使用道具 举报
chenke79
高级会员   /  发表于:2011-7-15 16:56:00
15#
还是比较急.


我现在用

""c
""c

来判断ctrl+c,ctrl+v不知道可行否,感觉有点怪.
回复 使用道具 举报
chenke79
高级会员   /  发表于:2011-7-15 16:56:00
16#
我的是6.0的
回复 使用道具 举报
robert
金牌服务用户   /  发表于:2011-7-15 17:05:00
17#
尝试这个解决方案,看是否能让你们的客户满意。
1. 自定义一个MyNumberCell从NumericUpDownCell派生 (代码在后边给出)
2. 全工程查找“NumericUpDownCell”,替换为“MyNumberCell”
VB:
  1. Class MyNumberCell
  2.     Inherits NumericUpDownCell
  3.     Public Sub New()
  4.         Me.ShowSpinButton = CellButtonVisibility.NotShown
  5.     End Sub
  6.     Protected Overrides Function GetEditingControlBounds(ByVal cellBounds As Rectangle, ByVal rowIndex As Integer) As Rectangle
  7.         Dim bounds As Rectangle = MyBase.GetEditingControlBounds(cellBounds, rowIndex)
  8.         Return New Rectangle(bounds.X, bounds.Y, bounds.Width + SystemInformation.VerticalScrollBarWidth, bounds.Height)
  9.     End Function
  10. End Class
复制代码

C#
  1.     class MyNumberCell : NumericUpDownCell
  2.     {
  3.         public MyNumberCell()
  4.         {
  5.             this.ShowSpinButton = CellButtonVisibility.NotShown;
  6.         }
  7.         protected override Rectangle GetEditingControlBounds(Rectangle cellBounds, int rowIndex)
  8.         {
  9.             Rectangle bounds = base.GetEditingControlBounds(cellBounds, rowIndex);
  10.             return new Rectangle(bounds.X, bounds.Y, bounds.Width + SystemInformation.VerticalScrollBarWidth, bounds.Height);
  11.         }
  12.     }
复制代码
回复 使用道具 举报
barrylei
中级会员   /  发表于:2011-7-20 21:51:00
18#

回复 13# barrylei 的帖子

chenke79,MultiRow6.3 Sp 19号已经正式发布了,对于你的需求,有专门的属性支持,不需要写代码了,你可以寻求你的控件提供者,让他们给你最新的Build。
回复 使用道具 举报
12
您需要登录后才可以回帖 登录 | 立即注册
返回顶部