Pick up and pass arguments (Winforms)

  • Thread starter Thread starter HansvB69
  • Start date Start date
H

HansvB69

Guest
Hi,



I have made a program that stores queries in a SQLite database. When you start the program, you must first make a connection with an Oracle database. The connection is also stored in the SQLite database. If the connection is successful, the queries assigned to the oracle connection are retrieved from the SQLite database and placed in a treeview. If you then double click on a treeview node, the query will be executed and you will see the possible result in a datagridview. You can also check multiple treeview nodes and then all checked queries will be executed consecutively.



Now I want to extend my program with the following (Or start from scratch to allow for the following). I want to be able to start the program with arguments and then run the chosen queries so that I can put it in the task manager and run certain queries automatically without having to manually start the program. I know I could make a sql script but I would like to do that with this program. I also know how to read arguments when a program starts. But how can I best pick up the Oracle connection and control / execute the queries? It is a WinForm application.



Please give tips on how to do this.



Greatings

Continue reading...
 
Back
Top