i have textbox1 in form as "NOTE" when i type text in textbox1 and press insert button it's work but when i get that text again from DB to textbox1 and try to remove the text (to remove the NOTE from DB) and the cursor is in the textbox1 .. and press insert button again i get this error :
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Data.dll
Additional information: SqlCommand.Prepare method requires all variable length parameters to have an explicitly set non-zero Size.
how i can use if statement to cheek if textbox1 IsNullOrEmpty or IsNullOrWhiteSpace i have tried them both not working ..

if (textbox1.Text == "") { ... }is an easy enough check...