I am trying to re-write my app in C# on my Touch pro because I am having intermittent behaviour problems with the forced QVGA version. The non forced version I run on my QVGA Imate Jasjam doesn't do the behaviour.
I want to write the app to see if it's either
a) the Touch pro
b) or the forced compiled program
I have managed to incorporate my SIP and Autocomplete classes and they work just fine.
I'd like to be able to create a single connection to my SQLite database that I can use throughtout the application but I don't see a way to do this in C#.
so I could do something like
cmd=new SQLiteCommand(conn); where conn is the global variable that is instantiated and has the database open.
Currently I have to create a conn for each form that needs to access data and get it to connect to the db and this is a slow process. I'd much rather connect to the db once at the start of the app then allow speedier access on all forms.
I'm trying to get my head around Static but I haven't seen anything that makes sense.
//EDIT: I created a public static SQLiteConnection conn; in frmMain.
In the form load I connect to the db and elsewhere I access it via frmMain.conn like
cmd=new SQLiteCommand(frmMain.conn);
and away I go.
I have found the strongly typed datasets in C# for Compact Framework don't work properly. I couldn't get the data to persist in the database. I did get it working for VB so I don't know what the go is.
Doing it my way in C# has much less overheads. //EndEDIT
please help!
regards, Ricky
I want to write the app to see if it's either
a) the Touch pro
b) or the forced compiled program
I have managed to incorporate my SIP and Autocomplete classes and they work just fine.
I'd like to be able to create a single connection to my SQLite database that I can use throughtout the application but I don't see a way to do this in C#.
so I could do something like
cmd=new SQLiteCommand(conn); where conn is the global variable that is instantiated and has the database open.
Currently I have to create a conn for each form that needs to access data and get it to connect to the db and this is a slow process. I'd much rather connect to the db once at the start of the app then allow speedier access on all forms.
I'm trying to get my head around Static but I haven't seen anything that makes sense.
//EDIT: I created a public static SQLiteConnection conn; in frmMain.
In the form load I connect to the db and elsewhere I access it via frmMain.conn like
cmd=new SQLiteCommand(frmMain.conn);
and away I go.
I have found the strongly typed datasets in C# for Compact Framework don't work properly. I couldn't get the data to persist in the database. I did get it working for VB so I don't know what the go is.
Doing it my way in C# has much less overheads. //EndEDIT
please help!
regards, Ricky
Last edited: