View Full Version : Vb
05-01-2004, 04:50 PM
I'm currently trying to code this VB script with allowed's me to load up another VB box with all the data from the first box in the other box.. how can I do that?
05-01-2004, 07:22 PM
I got it to exit out of it self but not load the second dialog
Private Sub ComButton1_Click()
'Hide Dialog One
'Load Dialog Two
05-02-2004, 04:48 AM
Well you have to think logically...
When you unload the original box, you no longer have a call to load the second box in memory... To accomplish what you are wanting to do there are a couple of things you can do...
Load the second dialog and make the first dialog disabled... When you do this, have the second dialog grab the information you need and then close the first dialog from the second dialog (this is usually the easiest and cleanest way to acomplish this and is generally preferred by programers)...
Load the second dialog from the first dialog, transfer the information from within the first dialog to the second dialog, then close the first dialog from the first dialog... (more confusing and a little dirtier)
05-02-2004, 08:27 AM
Loading a form isn't enough, it just loads the form into memory. You forgot to show the form (D2.Show).
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.