/build/static/layout/Breadcrumb_cap_w.png

VB - ListBox

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

Answers (6)

Posted by: anonymous_9363 15 years ago
Red Belt
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.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
I was going to suggest VB instead of vbscript....the express edition is free!
Posted by: anonymous_9363 15 years ago
Red Belt
0
Hmmm....install how-many-Mb-of junk, just to get a listbox?!? LOL...
Posted by: aogilmor 15 years ago
9th Degree Black Belt
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. [;)]
Posted by: anonymous_9363 15 years ago
Red Belt
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.
Posted by: rayz_0020 15 years ago
Senior Purple Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ