• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: How can I open app using c# winform and close the winform without closing the opened app?

Resolved: How can I open app using c# winform and close the winform without closing the opened app?

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I’m using this code to open ms access database :
It’s working but when the Finally part executed This.Close the opened access database closes , How can I use this code and close the form without closing the opened access database ? Thanks
Edit#1 : I used this but still having the problem
Edit#2 I discovered another problem , I have two PC’s the first running office 2016 32-bit and the other 2016 64-bit. The first one where I developed this app when I debug or release the ms access application opens but the database Baseet.accde don’t open . The second PC when I try to run the released app it works fine ! why is this ??!!

Answer:

Remove the Form from Application.Run(); and open the form explicitly with frm.Show();
Instead of
Use
Now you must leave the application with Application.Exit();. Closing the form will not terminate the application any more.

If you have better answer, please add a comment about this, thank you!

c# ms-access
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How can I write CSS selector(s) that apply to table rows for all td elements on that row after a td with a certain class?

01/04/2023

Resolved: How do I use SetWindowText with Unicode in Win32 using PowerShell?

01/04/2023

Resolved: Shopware 400 Status Error “This value is too long. It should have 255 character or less.” When I Try Updating Database Table

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.