How to show alert box automatically in windows Application

I have a window application in which i am dealing with the stock..
I want that if the items in stock table less then 50 alert message will appear that " You have 50 items left in you stock "...
Posted by Habib 10/3/2014 4:35:08 PM
Total Answers : 2
Answer 1
You can do like this :

If(stock < 50)
{
MessageBox.Show("You have 50 items left");
}

is this what you want? do tell me..
Posted by StepCoder Team 10/5/2014 2:01:34 PM
Answer 2
yes i got it thanx...
Posted by Habib 10/17/2014 10:38:31 AM
Post your answer
Preview
Sign in to your account
Your Email : 
Password :   
Forgot your password
Don't have StepCoder account ?
Create a new account
 
Follow me on twitter
About Me
Harpreet Singh
I began programming with C++ when i was 17. Then at the middle of my study .NET came. Then I began to read C# and VB.NET. By the time i learnt SQL and ASP.NET, and developed some websites such as news portals that are active now. Currently i am running my own Software company.
Answer these questions! If you know the answer.