我在将旋转框的默认.value设置为10时遇到了一个小问题。这是由.TextChanged事件控制的。当.TextChanged发生时,旋转框的值保持在属性中设置的值,即0。
'SETS MAX PLAYERS DEPENDING ON txtGameList AND cmbMode
Private Sub cmbMode_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbMode.TextChanged
If cmbGamesList.Text = "Counter-Strike: Global Offensive" And cmbMode.Text = "Competative" Then
txtMaxPlayers.Maximum = 10
txtMaxPlayers.Minimum = 1
txtMaxPlayers.Value = 10
End If
End Sub
有人对如何让我改变这个有任何建议吗?
提前致谢。
戴蒙