HOW TO CHECK TEXTBOX IS NULL IN C# VB.NET

HOW TO CHECK TEXTBOX IS NULL IN C# VB.NET
=================================================================
if (txtcast.Text.Trim() == string.Empty)
{
MessageBox.Show("Enter Result");
txtcast.Focus();
}
=================================================================

No comments: