01-04-20, 08:53 PM
كود :
ListBox1.DataSource = Nothing
ListBox1.Items.Clear()
Dim N As Integer
Dim Txt As String = Nothing
For Each x As String In TextBox9.Text
x = Regex.Replace(x, "[إأآا]", "[إأآا]")
x = Regex.Replace(x, "[هة]", "[هة]")
x = Regex.Replace(x, "[وؤ]", "[وؤ]")
x = Regex.Replace(x, "[يى]", "[يى]")
Txt &= x
Next
For Each x As DataRow In EeeeDataSet.gg.Rows
If Regex.IsMatch(x(1), "^" & Txt) = True Then
ListBox1.Items.Add(x(1))
N += 1
End If
Nextفي الخدمة
