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.
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)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
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.
You could also build an HTA. Either route involves learning some HTML but that's easy enough.
Posted by:
aogilmor
15 years ago
Posted by:
anonymous_9363
15 years ago
Posted by:
aogilmor
15 years ago
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
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.
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.