One quick question 
Author Message
 One quick question

i am trying to quickly learn vb6 to put together a simulation program for a
mixture properties.  the purpose is not ,however, important.  i need to know
what the code is that would go inside the next button click event.  with a
button cmdNext on form1 how do i close form1 and open form2?

thank you
james hades



Mon, 06 May 2002 03:00:00 GMT  
 One quick question
Would it not make sense to have several containers on your Form1 and not have a
Form2 at all. A container is an object such as a frame or picture box. Then fill
each container with whatever you would have put in each form, except cmdNEXT.
Set the 1st container's  visible property to true, and the second as false. Then
add code in the cmdNEXT button to set the first container visible=false and the
second true.

If you really need two forms, you can have the commands,
Form1.Hide
Form2.Show
I think that might work.
G.Doucet

James Hades a crit :

Quote:
> i am trying to quickly learn vb6 to put together a simulation program for a
> mixture properties.  the purpose is not ,however, important.  i need to know
> what the code is that would go inside the next button click event.  with a
> button cmdNext on form1 how do i close form1 and open form2?

> thank you
> james hades



Mon, 06 May 2002 03:00:00 GMT  
 One quick question
James,

To unload form1 and show form2:

    Unload Me
    Form2.Show

Hope this helps,

Kerry Moorman

Quote:

>i am trying to quickly learn vb6 to put together a simulation program for a
>mixture properties.  the purpose is not ,however, important.  i need to
know
>what the code is that would go inside the next button click event.  with a
>button cmdNext on form1 how do i close form1 and open form2?

>thank you
>james hades



Tue, 07 May 2002 03:00:00 GMT  
 One quick question

Quote:

>i am trying to quickly learn vb6 to put together a simulation program for a
>mixture properties.  the purpose is not ,however, important.  i need to know
>what the code is that would go inside the next button click event.  with a
>button cmdNext on form1 how do i close form1 and open form2?

        Unload Form1
        Form2.Show

Lee Weiner
weiner AT fuse DOT net
http://home.fuse.net/lweiner



Tue, 07 May 2002 03:00:00 GMT  
 One quick question
use unload form1  and form2.visible = 1


Thu, 09 May 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. ASP.NET : one quick question

2. Hello all, one quick question

3. Quick Database question - Easy one for you experienced programmers, but out my hands - Please help

4. Database quick question - easy one for all you programmers - Beyond me though

5. One more quick question

6. One More Quick Question...

7. API, WM_SETEXT, quick question, need quick answer please

8. One file question, one menu question

9. The quick question and the long question.

10. QUICK QUESTION:vb question/buying decision

11. Very quick one: Syntax for password????

12. quick one

 

 
Powered by phpBB® Forum Software