checked listbox question


Author
Message
Paul Chase
Paul Chase
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
I cannot seem to get this right but it has been a long weekSmile

I have 3 tables

Jobsite - contains info about a job

Equipment - contains a list of equipment (shovels,hard hats etc)

JsEquipment link table for first 2 tables contains a Pk and 2 FK's from each above tables JSE_PK,JBS_FK,EQP_FK

I want to use a checked listbox to allow the user to select which equipment needs to be used on the job. Can you give me a rundown on how to set up the checked listbox. I have tried but failed..BigGrin By the way all the primary and foreign keys are guid's

Thanks

P

Replies
StrataFrame Team
S
StrataFrame Developer (17K reputation)StrataFrame Developer (17K reputation)StrataFrame Developer (17K reputation)StrataFrame Developer (17K reputation)StrataFrame Developer (17K reputation)StrataFrame Developer (17K reputation)StrataFrame Developer (17K reputation)StrataFrame Developer (17K reputation)StrataFrame Developer (17K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
It's OK to drive on the wrong side of the road sometimes... just as long as your steering wheel is still on the correct side and you don't have to shift with your left hand Smile
Trent Taylor
Trent Taylor
StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
This is just standard ListView behavior and we do not add any additional functionality here.  But to use a checked list view, just set the CheckBoxes property to True.  Then to set a ListView checked item it would just be setting the Checked property of the ListVIew item.

MyListView.Items(0).Checked = True

You can also referenced the CheckedItems collection to see which items have been checked rather than having to cycle through the Items collection and testing:

Dim loItem As ListViewItem

For Each loItem IN MyListView.CheckedItems
    '-- Place your code here to do something with the checked item
Next


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search