3
換號時,我有這樣的數據綁定:數據綁定失敗上的NumericUpDown
numericUpDown1.DataBindings.Add("Value", myBox1, "Width");
每當myBox1.Width變化,它會更新numericUpDown1.Value。
問題是當在控件上輸入新數字時,myBox1.Width不會立即更新,而只會在光標離開控件的文本區域後纔會更新。有沒有解決這個bug的方法?謝謝!
有沒有匹配的簽名,但numericUpDown1.DataBindings.Add( 「值」,myBox1, 「寬度」,假的,DataSourceUpdateMode.OnPropertyChanged)就像一個魅力。謝謝! – Dan7 2010-01-19 19:12:22
不客氣 – Giorgi 2010-01-19 19:30:31