| | |
Using If statement with a button action to stop it if information is missing
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 5
Reputation:
Solved Threads: 0
THis is what i did
if
(txtName.Text == "")
{
MessageBox.Show(
"All Field must be Fill in!!!","Missing Information", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
what do i write on the if, to stop the button from executing the label action since information is missing?
if
(txtName.Text == "")
{
MessageBox.Show(
"All Field must be Fill in!!!","Missing Information", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
what do i write on the if, to stop the button from executing the label action since information is missing?
Last edited by lyvenice; Apr 19th, 2009 at 5:09 pm.
![]() |
Other Threads in the C# Forum
- Previous Thread: how to make chats in C#
- Next Thread: Killing Hidden Processes
Views: 215 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# chat check checkbox class client code color control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gcd gdi+ http httpwebrequest image index input java list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving server sleep socket sql statistics stream string table textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





