Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


How to instantiate new window

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,51800
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> How to instantiate new window
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 How to instantiate new window - 9/13/2007 4:28:47 AM   
  zokissima

 

Posts: 13
Score: 0
Joined: 3/26/2007
Status: offline
Hi all

  I have a small assignment to finish for school, but can directly apply it to a little app I want to write for work.

I am creating two forms in Visual Basic studio, and want to know how to invoke one from the other. Specifically:

First window is main running window.
What function do I need to add to a button to close the window?

Also, there is a blank text field that is in the first window. When a user types in something, then clicks on a second button (other than the close)
it is supposed to instantiate the second window. So I need to make a constructor that passes the parameter of whatever is stored in that text field, and sets the label and title of the second window from that parameter.

Not asking for completed code, just where I can read about the methods I need to apply?

Thanks!
 
 
Post #: 1
 
 RE: How to instantiate new window - 9/13/2007 4:29:56 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
I would start by asking your question in a VB forum and not a VBScript forum.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to zokissima)
 
 
Post #: 2
 
 RE: How to instantiate new window - 9/13/2007 5:00:03 AM   
  zokissima

 

Posts: 13
Score: 0
Joined: 3/26/2007
Status: offline
Touche. Will give that a shot. However, I assumed that calls to instantiate and close windows are the same methods from within VB and VBScript...

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: How to instantiate new window - 9/13/2007 6:16:32 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
VBScript does not have any built in forms classes so they are not only not the same, they are non-existent in VBS.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to zokissima)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> How to instantiate new window Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts