Found solution!
Never mind people!
I found solution myself and here it is:
It is happening because of .NET Framework 4.0. I changed it to version 4.5 and now it works.
Solution
The problem with your code is:
Form1 frm1 = new Form1();
Above statement creates a new instance (object) of Form1 so the textbox txtPervasiveDBName will be newly created everytime the above statement is executed.
You can store the Database name to be passed in Program.cs file.
Create...
Hello folks,
First Post.
I'm using Visual Studio 2012 Express and .NET Framework 4.0.
As mentioned in Thread Title, (System.Windows.Forms.)Timer works fine in Debug Mode but does not work in Release Mode.
I googled it and found it might be getting collected by Garbage Collector (GC).
If it is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.