auto application close

Programming
Tutor: None Selected Time limit: 3 Days

code of auto application close in win form application in visual studio 2010

Aug 1st, 2013

using System;
using System.Windows.Forms;
using System.Drawing;

class TestClass
  {
  static void Main(string[] args)
  {
  System.Windows.Forms.Application.EnableVisualStyles();
  Application.SetCompatibleTextRenderingDefault(false);
  Application.Run(new myForm());
  }
  }


using System;
using System.Collections.Generic;

 ...
  public partial class myForm : Form
 {
 int x = 0;
 }
 ...


I want to close myForm automatically when x = 0 and do not close when x = 1;

(may be this helps )

Aug 1st, 2013

Did it help ???

Aug 1st, 2013

ya thanks 

i m new at likeplum give me some tips


Aug 1st, 2013

If my answer really helped you can you pay me then the pledge that you set ?

Yes I Can guide you brother 

Aug 1st, 2013

how can i pay


Aug 1st, 2013

you can ask any question related to your studies or anything here .. and you can answer others too :) and if they like your answer they would pay you .. the first question is free and money is given by like plum it self 

Aug 1st, 2013

there would be an option check it .. pay him or something like that ad rate me like how did I answer :)

Aug 1st, 2013

DID YOU FIND the option ?

Aug 1st, 2013

Are you studying on the go? Check out our FREE app and post questions on the fly!
Download on the
App Store
...
Aug 1st, 2013
...
Aug 1st, 2013
Dec 3rd, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer