|
-
January 5th, 2010, 06:24 PM
#1
Textbox left blank = freeze?
Hi! I'm still a bit of a beginner to C# .Net 3.0 and I need some help. I have a program that takes two textbox inputs and adds them together. However when one is left blank it causes the program to freeze. I used a if(Textbox1.Text == null) condition but it still causes it to freeze. I believe I have to use catch and try but I don't know what the exception would be to catch! Anyone know what to do?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|