|
-
Aug 6th, 2003, 02:56 PM
#1
Thread Starter
Lively Member
How can I make a listbox - style=Checkbox to start its index with one instead of zero
I have a listbox, style = checkbox, and I want its index to start with one instead of zero, is that possible????
-
Aug 6th, 2003, 03:06 PM
#2
Hyperactive Member
No, you cannot. If you remove the first item, it will simply shift the indexes of the other items so that the first one is always 0.
of course, that would be fun to add to my listbox...
Now returning to the world of VB. Please make sure your seatbelts are securely fastened and all trays are in their upright and locked position.
-
Aug 6th, 2003, 03:10 PM
#3
Frenzied Member
How you came up with this?
Why would you need it?
-
Aug 6th, 2003, 03:58 PM
#4
Hyperactive Member
ya...... juse use '0' as the index..... why do you need '1' ?
-
Aug 6th, 2003, 04:56 PM
#5
-
Aug 7th, 2003, 08:25 AM
#6
Thread Starter
Lively Member
Originally posted by manavo11
If it is for a loop you want this try making the listindex you have listindex+1 in the loop process.
The reason is that I have another combo box with the same list as the listbox exept the first item on the combobox is not in the listbox, so I need to sync those two controls, and I use the index to store and retreive some items to a collection.
So I have per say two items in the listbox but in the combobox I have three, so the index in the combobox will be 0,1,2 and in the listbox 0,1
and the item No1 in the combobox is not in the listbox, so I need the lisbox index's to be 1,2
to sync with the combobox.
-
Aug 7th, 2003, 12:38 PM
#7
Hyperactive Member
just use the index of the item in the combo box + 1
combo = 0,1,2,3,4
list = 0,1,2,3
list + 1 = 1,2,3,4
Now returning to the world of VB. Please make sure your seatbelts are securely fastened and all trays are in their upright and locked position.
-
Aug 7th, 2003, 06:53 PM
#8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|