想請大家幫我看一下我寫的程式:
Private Sub NumericUpDown1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NumericUpDown1.ValueChanged
If Me.NumericUpDown1.Value + 1 Then
Me.PictureBox1.Width += 10
ElseIf Me.NumericUpDown1.Value - 1 Then
Me.AxBarCodeCtrl1.Width -= 10
End If
End Sub
我想要在NumericUpDown1按上的箭頭後PictureBox的Width就會變寬然後按下的
箭頭時PictureBox的Width就會變窄,但我寫的程式不管怎麼用都不會變寬不會
變窄,是不是要去判斷滑鼠按下去時是NumericUpDown1.UpButton() 或是
NumericUpDown1.DownButton()??
如果是的話要怎麼去做判斷呢??請個位板指導一下~~謝謝
--
別人笑我太瘋顛 我笑他人看不穿
不見五陵豪傑墓 無花無酒鋤作田
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 211.20.51.237