Modal Forms in VB 6.0
-
I load and show a form from the opening form of the application. We will call the startup form form a and the form that is called, form b. So a calls show form b. When form b wants to close, but not end the program, what needs to be called? Is it unload, is it deactivate? How do I get the form to close in such a way that the form a can access whatever has changed within form b? Thanks again, The VB NOOB ----------------- http://www.zachcalvert.com
-
I load and show a form from the opening form of the application. We will call the startup form form a and the form that is called, form b. So a calls show form b. When form b wants to close, but not end the program, what needs to be called? Is it unload, is it deactivate? How do I get the form to close in such a way that the form a can access whatever has changed within form b? Thanks again, The VB NOOB ----------------- http://www.zachcalvert.com
-
I load and show a form from the opening form of the application. We will call the startup form form a and the form that is called, form b. So a calls show form b. When form b wants to close, but not end the program, what needs to be called? Is it unload, is it deactivate? How do I get the form to close in such a way that the form a can access whatever has changed within form b? Thanks again, The VB NOOB ----------------- http://www.zachcalvert.com
hi, I set up a dummy project, two buttons on form A and a button and a text box on form B, load form A press button 1, form B is shown, fill some text in the text box press the button on form B, form B is hidden. Then Press other button on form A to show msgbox of text in box on form B. Lovely Jubbly Form A code: Private Sub Command1_Click() Load Form2 Form2.Show End Sub Private Sub Command2_Click() MsgBox Form2.txtMsg.Text End Sub Form B Code: Private Sub Command1_Click() Form2.Hide End Sub "If i was king cigarettes would be free."
-
hi, I set up a dummy project, two buttons on form A and a button and a text box on form B, load form A press button 1, form B is shown, fill some text in the text box press the button on form B, form B is hidden. Then Press other button on form A to show msgbox of text in box on form B. Lovely Jubbly Form A code: Private Sub Command1_Click() Load Form2 Form2.Show End Sub Private Sub Command2_Click() MsgBox Form2.txtMsg.Text End Sub Form B Code: Private Sub Command1_Click() Form2.Hide End Sub "If i was king cigarettes would be free."