Hello,
i am using the following,
However, i am just wondering is they a better way to do this.
The user will enter an integer value into a text box, then select from a combo box. For example enter 3 in the text box, and select days from the combo box.
The end result would be: 3 Days.
Many thanks for any ideas.Code:'Append the duration from the combo box to the value entered into the text box. Private Sub cboDuration_SelectionChangeCommitted(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboDuration.SelectionChangeCommitted Try Dim value As String = Me.txtEstimatedDuration.Text Dim duration As String = Me.cboDuration.SelectedText Me.txtEstimatedDuration.Text = String.Format("{0} {1}", value, duration) Catch ex As Exception MsgBox(ex.Message) End Try End Sub




Reply With Quote