Problem in closing the login window
-
hi, I have a login window that opens up before any other window of the application. the problem is that I m not able to close the login window upon authentication and then load the parent window of the system. I use the following code to hide the login window:
this.FindForm().Visible=false;
but hiding the window is a very bad approach as though the form is not visible but it still is consuming memory. the following code to close the window closes all the windows of the application, including the MDI parent formthis.FindForm().Close();
Please help -
hi, I have a login window that opens up before any other window of the application. the problem is that I m not able to close the login window upon authentication and then load the parent window of the system. I use the following code to hide the login window:
this.FindForm().Visible=false;
but hiding the window is a very bad approach as though the form is not visible but it still is consuming memory. the following code to close the window closes all the windows of the application, including the MDI parent formthis.FindForm().Close();
Please helpUse MDI container , open the login as the child of tht MDI, on successful login close the form as its a child it wont close the parent, open a new form which you want to show ! does tht help ? regards, logicaldna
Chase your dreams ! http://eminencetech.net[^]
-
hi, I have a login window that opens up before any other window of the application. the problem is that I m not able to close the login window upon authentication and then load the parent window of the system. I use the following code to hide the login window:
this.FindForm().Visible=false;
but hiding the window is a very bad approach as though the form is not visible but it still is consuming memory. the following code to close the window closes all the windows of the application, including the MDI parent formthis.FindForm().Close();
Please help -
hi, I have a login window that opens up before any other window of the application. the problem is that I m not able to close the login window upon authentication and then load the parent window of the system. I use the following code to hide the login window:
this.FindForm().Visible=false;
but hiding the window is a very bad approach as though the form is not visible but it still is consuming memory. the following code to close the window closes all the windows of the application, including the MDI parent formthis.FindForm().Close();
Please helpHi, There is simple approach to this problem create MDI form and on MDI Form_load event formLogin.Showdialog() --for .Net-- OR formLogin.show(vbmodal) --for VB classic-- [ remember formLogin is not a child Form ] and At Last on Successful Login Close formLogin.Close Thanks & Wishes Navneet Hegde Nashik(City Of Pilgrimage)
Develop2Program & Program2Develop