我需要一些帮助才能从第三方应用程序中获得ErrorProvider的工具提示。有没有什么示例可以让它工作?我正在使用VB NET
发布于 2019-03-21 11:15:00
我不明白你说的第三方应用是什么意思。要查看工具提示,用户可以将光标移动到文本框旁边出现的红色圆圈上。
Private err As New ErrorProvider()
Private Sub TextBox1_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles TextBox1.Validating
If TextBox1.Text = "" Then
e.Cancel = True
err.SetError(TextBox1, "This text box cannot be blank.")
Else
err.Clear()
End If
End Subhttps://stackoverflow.com/questions/55273200
复制相似问题