I am making a "toast" in vb.net, and whenever it pops up, all the text in the body textbox is ALWAYS highlighted...how can I remove the highlight programmatically?
Thanks!
Here is the code which seems to be automatically highlighting:
Dim i As Integer
toast.HeaderL.Text = headertext
toast.BodyL.Text = contenttext
toast.Show()
toast.Opacity = 0
i = 0
While i < 100
toast.SetDesktopLocation(My.Computer.Screen.WorkingArea.Right - toast.Width, My.Computer.Screen.WorkingArea.Bottom - ((toast.Height / 100) * i))
toast.Opacity += 0.01
wait(7)
i += 1
End While
wait(4000)
toast.Opacity = 1
i = 0
While i < 100
toast.SetDesktopLocation(toast.Location.X, toast.Location.Y + toast.Height / 100)
toast.Opacity -= 0.01
wait(7)
i += 1
End While
toast.Close()
Always, the text inside BodyL (which is a textbox), highlights itself.I tried adding in toast.Focus() at some points, but that did not work.
toast is the form name.