Dan*_*an7 3 .net c# data-binding numericupdown
我有这样的数据绑定:
numericUpDown1.DataBindings.Add("Value", myBox1, "Width");
Run Code Online (Sandbox Code Playgroud)
每当myBox1.Width更改时,它将更新numericUpDown1.Value.
问题是当在控件上输入新数字时,myBox1.Width不会立即更新,而是仅在光标离开控件的文本区域之后.这个bug有什么解决方法吗?谢谢!
像这样更改代码:
numericUpDown1.DataBindings.Add("Value", myBox1, "Width", false, DataSourceUpdateMode.OnPropertyChanged);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3822 次 |
| 最近记录: |