我在vb.net中做了一个“toast”,每当它弹出时,正文文本框中的所有文本总是突出显示......我如何以编程方式删除突出显示?为什么我的文字不断突出显示?
谢谢!
这里是这似乎是自动突出显示的代码:
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()
始终,内部BodyL(这是一个文本框)的文本,凸显itself.I试图在某些点添加在toast.Focus() ,但那并不奏效。
吐司是表单名称。
WinForms? WPF? ASP.NET和JavaScript?我们需要更多的信息,而不是您在这里给我们提供的信息。 – 2009-08-28 03:34:40
Winforms,vb.net 2008,在Visual Basic中用sp1制作 – Cyclone 2009-08-28 14:46:13
你能分享一些代码,展示你做了什么吗? – 2009-08-28 18:55:00