I want to create a VB .exe to include in my autorun CD.
Here is what I need:
The .exe should prompt user with a form with 3-4 options, and on clicking the respective options, the user should be see another form with second set of options.
Does anyone have a VBScript for the same?
Here is what I have done/ My issue:
I created a Project in Visual Basic 6.
I created Form1 and added 4 option controls (Frm1Opt1, FrmOpt2, FrmOpt3, Frm1Opt4) on that form.
I created Form2 and added 3 options on that form (Frm2Opt1, Frm2Opt2, Frm2Opt3)
I added a click event for the first option control on form1:
Private Sub Frm1Opt1_Click()
Me.Hide
Form2.Show
End Sub
I have changed the project startup properties to start with Form1.
The problem is that now when I compile and run the program, automatically the click event of the first form-first option runs and I see the Form2 instead of Form 1.
I just do not see Form1.
I had thought that the click event will only run when I select the first option on form 1, but it just runs automatically.
I am not sure how can I change that? I am probably missing something.
Thanks
Here is what I need:
The .exe should prompt user with a form with 3-4 options, and on clicking the respective options, the user should be see another form with second set of options.
Does anyone have a VBScript for the same?
Here is what I have done/ My issue:
I created a Project in Visual Basic 6.
I created Form1 and added 4 option controls (Frm1Opt1, FrmOpt2, FrmOpt3, Frm1Opt4) on that form.
I created Form2 and added 3 options on that form (Frm2Opt1, Frm2Opt2, Frm2Opt3)
I added a click event for the first option control on form1:
Private Sub Frm1Opt1_Click()
Me.Hide
Form2.Show
End Sub
I have changed the project startup properties to start with Form1.
The problem is that now when I compile and run the program, automatically the click event of the first form-first option runs and I see the Form2 instead of Form 1.
I just do not see Form1.
I had thought that the click event will only run when I select the first option on form 1, but it just runs automatically.
I am not sure how can I change that? I am probably missing something.
Thanks