|
-
Oct 29th, 2009, 04:58 AM
#1
Thread Starter
Member
Location of the SDF
Hello All,
I am developing an order taking application and am testing through the emulator. I am inserting orders into my SDF but where can i find this SDF to open the tables on my hard disk? I can see the SDF on the emulator under Program Files\MyApp but i could do with viewing the entries in the tables but am struggling to find it.
Also, while i'm here, When i close my app down in the emulator but then re-launch it, its 'state' from when it was cloed down is saved. Is there a setting so that the app starts up first time?
many thanks
-
Oct 29th, 2009, 07:27 AM
#2
Re: Location of the SDF
Hey,
When you deploy your application to the Emulator, Visual Studio should also have deployed the Query Browser Application for SQL Server Compact. This will let you query the SDF file in the same way as you would a full blown instance of a SQL Server Database. Does this fit your requirement?
If not, you will have to manually take the SDF file off the file system of the Emulator. One way of doing this would be to connect the Emulator up to ActiveSync, then browse the device, and then copy and paste the SDF file over. That will then let you load it up in something like Visual Studio.
As for your second point...
By default, Windows Mobile Applications don't exit when you hit the button at the top right hand corner, they simply minimize. That means that when you fire it up again, it is just bringing the minimize version into focus. One way around this would be to hide the Minimize Button, and always show the close button, or add a button to your form that explicitly calls Application.Exit().
Hope that helps!!
Gary
-
Oct 29th, 2009, 12:14 PM
#3
Thread Starter
Member
Re: Location of the SDF
that was a big help, thanks a lot!
-
Oct 29th, 2009, 12:17 PM
#4
Re: Location of the SDF
Hey,
Not a problem at all!!
Let me know if you have any other questions.
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|