I have a program in vb6 and it has two buttons - One mara scanner and another one to consult scanned images. I created a program in C # winform in which the project has 2 forms - one form1 for the scanner and another form2 for the queries of the scanned images. The two on .Net works perfectly. I would like to know if there is a way to do this when running the .net program, using a parameter 1 or 2, to choose which of the forms will execute through VB6
In vb I intend depending on the button clicked, it will write to a table or 1 or 2. In the chosen button, you will call the application through the shell. Starting the application, I will consult the tabelacom the chosen parameter and open the requested form.
I just do not know how to do this in .Net C #. the start of Program.cs is like this in .NET
[STAThread]
static void Main()
{
ConsultaImagens2 f2 = new ConsultaImagens2();
Application.Run(f2);
MainFrame f1 = new MainFrame();
f1.Close();
MainFrame mf = new MainFrame();
ConsultaImagens mf = new ConsultaImagens();
Application.Run(mf);
MainFrame mf1 = new MainFrame();
mf1.Close();
}