Shop OBEX P1 Docs P2 Docs Learn Events
Visual Basic 2005 question: Forms calling forms? - Answered and Closed — Parallax Forums

Visual Basic 2005 question: Forms calling forms? - Answered and Closed

davejamesdavejames Posts: 4,047
edited 2009-08-27 18:36 in General Discussion
Hi All,

I recently heard rumor that a form in VB2005 can call another form.· My three reference books don't mention this and I can't seem to uncover the information on the Microsoft VB2005 site.

Has anyone done this?· If so, can you point me to the information or maybe provide a simplified example?


Appreciate it greatly,

DJ


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Instead of:

"Those who can, do.· Those who can't, teach." (Shaw)
I prefer:
"Those who know, do.· Those who understand, teach." (Aristotle)


Post Edited (davejames) : 8/27/2009 6:39:42 PM GMT

Comments

  • QuattroRS4QuattroRS4 Posts: 916
    edited 2009-08-27 18:05
    when you say 'calls another form' do you mean as follows -


    form2.visible = true

    assuming that the above is on form1 ...

    Not sure if that is what you are asking ..

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'

    'Those who can, do.Those who can’t, teach.'
    'Convince a man against his will, he's of the same opinion still.'

    ·
  • davejamesdavejames Posts: 4,047
    edited 2009-08-27 18:36
    Hi Quattro,

    Reading your question back to me, I realized that I used the wrong words in my initial question.· Being new to VB (learning as I attempt to develop a project) I goof on the terms.

    I view a "form" as a sub-routine (in Basic) or a function (in C), so I used the term "call" to indicate one process (the 'parent form' I guess is the proper wording) to call or run another form (a 'child'?).· Man this gets confusing!

    Anyway - my main need was to have the main form display a dialog (not a mesage box) that incorporates a "do not show me this again" check box.· And, with the usual helpful notes·from Unsoundcode (Jeff T.), I was able to do so.

    For those interested, screen captures of the form, dialog and text files of the related code are attached.


    Later,

    DJ

    P.S. I'm calling this thread answered and closed.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Instead of:

    "Those who can, do.· Those who can't, teach." (Shaw)
    I prefer:
    "Those who know, do.· Those who understand, teach." (Aristotle)
    1291 x 926 - 129K
    1291 x 926 - 128K
Sign In or Register to comment.