I am working on C# window forms, in my application i am trying to execute procedures using c# window forms in page load event. I am trying for, while executing the procedure the form should display, after that form should close automatically. My code is like this
public partial class Form1 : Form { string servername = ""; string database = ""; string password = ""; string Filepath = ""; string uid = ""; string reslt = ""; public Form1() { InitializeComponent(); GetExelData(); } private void Form1_Load(object sender, EventArgs e) { this.Close(); } } But with my code window form is not displaying, it is closed when the methods are executed. can you help me.