I agree with that being unusual behavior.
I believe it has to do with me having two events, one for the height and one for the length. When you update the textbox for height, it updates the textbox for length, and vice versa. They are both TextChanged events, which is probably whats causing all my issues. I am not sure how to correct this issue. I will include the code for both events.
Code:Private Sub tbHeight_TextChanged(sender As Object, e As EventArgs) Handles tbHeight.TextChanged Dim foot As Decimal If IsNumeric(tbHeight.Text) Then foot = Val(tbHeight.Text) * My.Settings.Foot tbLength.Text = foot.ToString(".00") Else tbStep.Text = "" tbStride.Text = "" tbHeight.Text = "" tbLength.Text = "" End If End Sub Private Sub tbLength_TextChanged(sender As Object, e As EventArgs) Handles tbLength.TextChanged Dim height As Decimal If IsNumeric(tbLength.Text) Then height = Val(tbLength.Text) / My.Settings.Foot tbHeight.Text = height.ToString(".00") Else tbStep.Text = "" tbStride.Text = "" tbHeight.Text = "" tbHeight.Text = "" End If End Sub




Reply With Quote
