15 Dec 2009

Checking Types in VB.NET

Easiest way I have found to date:


If TypeOf (Me.Button1) Is Button Then
MsgBox("is button", MsgBoxStyle.Information)
End If

No comments:

Post a Comment