First thanks for the awesome code.
Can you please tell me why my code is not working for loop? i have a list box. in which there are many items. and i use regular expression to match those values. and if there are match then the toast should pop up.. The thing is it does pops up but only for last item / match... even i used it in timer.. i want a popup for each match.. here is my code:
VB Code:
Dim myHTMLstring As String
Dim mywebclient As New Net.WebClient
myHTMLstring = mywebclient.DownloadString("www.somesite.com")
TextBox18.Text = myHTMLstring
Dim myMatches2 As MatchCollection
Dim myRegex2 As New Regex("(?<=ON >> )[a-zA-Z0-9\. \$%?!&\#(|)_@^£’;+/:\,^=–]+")
Dim t2 As String = _TextBox18.Text
myMatches2 = myRegex2.Matches(t2)
Dim successfulMatch2 As Match
For Each successfulMatch2 In myMatches2
If ListBox4.Items.Contains(successfulMatch2.Value) Then
TextBox19.Text = successfulMatch2.Value
Timer6.Enabled = True
ListBox4.Items.Remove(successfulMatch2.Value)
Else
End If
Next
ANd the timer
VB Code:
If Timer6.Enabled = True Then
Static sliceCount As Integer = 0
sliceCount += 1
Dim slice As New ToastForm(Me.rng.Next(2000, 4000), sliceCount & ": " & TextBox19.Text & " Is Online")
slice.Height = Me.rng.Next(100, 100)
slice.Show()
End If
Timer6.Enabled = False
And yes how to change the width of the popup?