Visual Basic 2005 question: Forms calling forms? - Answered and Closed
davejames
Posts: 4,047
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
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
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.'
·
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)