VB Code:
firstFind = SendMessage(ListReminderAll.hwnd, _
LB_FINDSTRINGEXACT, startfrompoint, [b]ByVal "f"[/b])
Searching for "f" all the time.
VB Code:
Private Sub Command1_Click()
Dim startfrompoint As Long
Dim firstFind As Long
Dim DatumAdd1 As String
startfrompoint = -1 'immer von ganz oben suchen
[b]DatumAdd1 = Format$(txtDateadd1.Text, "dd/mm/yy") 'OR "0.00" IF Currency[/b]
firstFind = SendMessage(ListReminderAll.hwnd, LB_FINDSTRINGEXACT, startfrompoint, ByVal [b]Datumadd1[/b])
If firstFind <> -1 Then
MsgBox "Eintrag gefunden. Index:" & firstFind
Else
ListReminderAll.AddItem DatumAdd1
End If
End Sub
Regards