Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old September 11th, 2007, 02:22 AM
Registered User
Join Date: Sep 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Filling a combobox/listbox

1) I am using VBScript to fill a combobox with current mth and previous mth in mmm-yy format. i.e. the combobox should contain "Sept-07" and "Aug-07".
<script language="VBScript">
sub abc()
' f1.D1.options(0).value = "a"
' f1.D1.additem "a"
end sub
<body onload=abc()>
<form name= "f1" method="Post" action="">
    <p><select size="1" name="D1"></select></p>

2) I have a 2 listbox's 1st with say list of 10 items and the 2nd one is empty. I select multiple options in the 1st box and click on a button, the selected items from the 1st box should move to the 2nd box.

Reply With Quote
  #2 (permalink)  
Old September 21st, 2007, 01:08 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

The only way I have been able to do something like this is to re-write the select's outerHTML. Perhaps there is now an easier way though.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
filling the combobox using sql data adapter kumaran BOOK: Professional .NET 2.0 Generics 4 October 5th, 2015 08:57 AM
Filling ComboBox from Dataset dcathers C# 9 June 15th, 2013 04:31 AM
Filling comboBox from an XML File kuznickic C# 2005 11 August 29th, 2007 02:54 AM
Filling SubForm from ComboBox ayazhoda Access VBA 4 June 5th, 2007 11:56 AM
Filling Combobox with value from other Combobox ayazhoda Access VBA 6 June 5th, 2007 05:58 AM

All times are GMT -4. The time now is 12:08 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.