Hi All,

My Requirement goes like this: When i run a VbScript, a listBox has to pop-Up with a list of (say,4) values and after the user has given an input I need to perform some actions based on this input.

can I do this through Vb?? If not, any other pointers on the ways to achieve this would be very helpful.

Thanks,
Rajesh.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
There's no native way to do that with VBScript. You could either use a third-party control or cheat and use IE as a container. There is a couple of classes knocking around which make doing that simple. One which springs to mind is Rob Costello's which I found on http://cwashington.netreach.net. The one I normally turn to, though, is from the excellent JSWare site, http://www.jsware.net/jsware/scripts.php5#msgb

You could also build an HTA. Either route involves learning some HTML but that's easy enough.
Answered 04/08/2009 by: VBScab
Red Belt

Please log in to comment
0
I was going to suggest VB instead of vbscript....the express edition is free!
Answered 04/08/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Hmmm....install how-many-Mb-of junk, just to get a listbox?!? LOL...
Answered 04/09/2009 by: VBScab
Red Belt

Please log in to comment
0
ORIGINAL: VBScab
Hmmm....install how-many-Mb-of junk, just to get a listbox?!? LOL...


Agree install is unweildy and bulky but if OP wants to learn a real programming language it'd be a good place to start...[:D] How does hta work? is there an SDK for it or a programming environment? IIRC scriptomatic is an hta app, and it's definitely got plenty of list boxes....

Me, I'm still in script world but I'd love to learn more about programming, creating UIs etc. really the best way is just to start doing it, and I gotta hand it to msft for giving out free tools...of course once they learn it then all the real programmers will want more full featured versions of VB, c# and c++ and will have to pay for them. [;)]
Answered 04/09/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Very true, Owen. I cut my programming teeth with VB and it's nice and easy to learn. The problem is that, like script, it's too easy to program badly. If you want to get into it, download the 'Code Of The Month' winners on Planet Source Code http://www.pscode.com . There's some superb work there.

When I say 'junk' I mean of course that it's just fog, when all the OP wants is a listbox. I use the VS Express Editions all the time (my script-friendly class interface to MSI.DLL, for example!)

HTAs are an amalgam of VBS and HTML so no SDK required!. I use them whenever I need to knock up a QAD UI with script underneath. There's not too much I haven't been able to do with them.
Answered 04/10/2009 by: VBScab
Red Belt

Please log in to comment
0
Hey guys,
Thanks for the inputs.. got my work done with HTA & Vb...
This is the first time i have tried HTML... Hmm.. It is much more easier than i expected it to be... [:)]

Cheers,
Rajesh.
Answered 04/13/2009 by: rayz_0020
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity