Private Sub numDuration_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles numDuration.KeyUp numDuration.Value = numDuration.Value End Sub Private Sub numDuration_ValueChanged(ByVal sender As Object, ByVal e As System
最近刚刚接触Silverlight,随便在网上找了一个入门的博文http://www.cnblogs.com/Terrylee/archive/2008/03/07/Silverlight2-step-by-step-part3.html,在给Slider绑定事件的时候,出现了NullPointerException错误, 求教了其他了知道了里面的错误. using System; using System.Collections.Generic; using System.Linq; usin
这鸟属性把我害苦过,特此敬告一下大家.具体表现在: 获取时:在DateTimePicker.ValueChanged事件中,获取到的Text有可能是string.Empty!!!,特别当ValueChanged事件是在构造函数或Load.Shown等启动事件中触发时,得到string.Empty的几率增大: 赋值时:有可能触发不了TextChanged事件(该事件默认不显示在设计器中,但的确是存在的): 可能的原因:先看Value属性的setter源码: set { bool flag = !D