I'm currently working on a small project and would like some help on it.
I have 2 forms, the first is a login window and the second will be the main program. The problem I have is that when I close form1
with this.Close()
it is exiting the whole program.
I have a feeling that I need to use threading or something like that but I can't find the right resource for my problem to be solved.
Thanks.
If you're using WPF, you can set Application.MainWindow to your second "main" window, prior to closing your login form.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With