on closing event of old form new form should be visible and after verification both form sh'd close
-
hi everybody, i m creating a browser in 2005 .net using c#.i came across the problem.i want to open a new form on closing event of old form. New form has field userid n password,only after verifying valid user both form should be closed.if user is not valid then old form should not be closed. if any idea then send me some clue if possible please send me source code in c#.
-
hi everybody, i m creating a browser in 2005 .net using c#.i came across the problem.i want to open a new form on closing event of old form. New form has field userid n password,only after verifying valid user both form should be closed.if user is not valid then old form should not be closed. if any idea then send me some clue if possible please send me source code in c#.
Show the new form in the onclosing event of the first one. After validating it close the new form and the old form will be closed too. If you want to cancel closing of old form have a look at the second argument of the onclosing event
-
hi everybody, i m creating a browser in 2005 .net using c#.i came across the problem.i want to open a new form on closing event of old form. New form has field userid n password,only after verifying valid user both form should be closed.if user is not valid then old form should not be closed. if any idea then send me some clue if possible please send me source code in c#.
You want people to provide credentials in order to close your app ? Yeah, handle the onclosing event and set the properties of the event args to cancel the close if you need to.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )