Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Properties Window Error Message Box

Status
Not open for further replies.

ashishraj14

Programmer
Mar 1, 2005
92
AU
When an invalid property value is provided in designer, an error message box popup which provide error description on clicking Details button.

How can I display custom error message on click of the Details button

Thanks
 
Throw an exception in the property declaration. Something like this

Set(ByVal Value As Integer)

If Value = 1 Then
Throw New Exception("Your error message.")
End If

p = Value
End Set
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top