Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Combo box in VB Script

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Combo box in VB Script
  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 >>
 Combo box in VB Script - 11/2/2006 11:57:44 PM   
  anoop_pv7

 

Posts: 12
Score: 0
Joined: 7/30/2006
Status: offline
Hey frndz,

I need to take input from the user before processing anything else. However, the values that the user can supply are limited - so I have decided to use a drop-down list box from which the user can select the required values. I have searched a lot for a script that would do this - but i was unable to find any...

Remember that only VBScript is used - anything else is ruled out. In essence, I mean I need a window similair to the one displayed by InputBox - with the text-box in it replaced with a combo-box. Is there any way that this can be achieved using VBScript (alone) ???

Thanks in Advance,
Anoop.
 
 
Post #: 1
 
 RE: Combo box in VB Script - 11/3/2006 12:09:19 AM   
  SAPIENScripter


Posts: 275
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
You cannot do this with VBScript.  If you don't have a lot of choices, you could turn the text of the input box into menu.  I've used this technique before.  You just have to check return value of the input box.

      
Another option would be to start an instance of Internet Explorer and create the drop down box there.

_____________________________

Jeffery Hicks
Windows PowerShell MVP
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com

Follow Me: http://www.twitter.com/JeffHicks

(in reply to anoop_pv7)
 
 
Post #: 2
 
 RE: Combo box in VB Script - 11/3/2006 2:28:04 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
You can also just write your VBScript as part of an HTA which is essentially the same as creating an instance of IE as SAPIENScripter suggested but it would keep everything in one process.

_____________________________

"... 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 SAPIENScripter)
 
 
Post #: 3
 
 
 
  

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 >> Combo box in VB Script 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