28-11-12, 04:15 PM
kslawy كتب :نعم صحيح ولكن عند استبدال Selecteditem بـ text يتم اختيار النص . عدل كودك ليصبح :
كود :
Private Sub TextBox1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.LostFocus
If TextBox1.Text <> "" Then
If ComboBox1.Items.Count > 0 Then
ComboBox1.Text = TextBox1.Text.Trim
End If
End If
End Sub
*****
****
***
**
*
شكرا لك اخي تمت التجربة بنجاح
شكرا للجميع على التفاعل
