0
I have a program in vb6 and has two buttons - A scanner and another for scanning images. I created a program in c# winform where the project has 2 Forms - a Form1 for the scanner and another form2 for the scanned image queries. The two on . Net work perfectly. I wonder if there is how to do that when running the program . net , through a 1 or 2 parameter, choose which of the Forms will run through VB6
In Vb I intend depending on the button clicked, will record in a table or 1 or 2 . On the button chosen, will call the application through the shell. Starting the application, I will consult the table with the chosen parameter and open the requested form.
I just don’t know how to do it on . net c#. The start of Program.Cs is like this on . 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();
}
You want the user to choose which application (Form1 or form2) to run, when opening the program? you can create a new one form with options and a button that will check these options and open the respective program,
– Hebert Lima