Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Lists in VB.NET CF...

184 views
Skip to first unread message

dwhittenburg

unread,
Nov 16, 2004, 2:24:50 PM11/16/04
to
I've played with ListBox, ListView and used DataGrid a good bit. I was
wandering if either of these could be used as a solution for my problem or
if there were other List solutions?

My problem is that I basically need a selection mechanism from a list,
however I need it multi-select. Currently, I'm using two ListBox controls,
one as the Available and one as the selected. Once clicking on the Available
it goes to the selected and vice versa.

I was actually looking for more of one list that I could use and on
selection of an item in the list it would be highlighted and I could select
mutliples...

Any suggestions?


Daniel Moth

unread,
Nov 16, 2004, 2:30:26 PM11/16/04
to
How about using checkboxes with a listview?

Also a quick search brought this up:
http://www.codeppc.com/dotnet/listview/multiselect/listviewmultiselect.htm
[I have not tried it myself so have no idea if it works or not]

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"dwhittenburg" <dwhitt...@greenwaymedical.com> wrote in message
news:eH6wrJBz...@tk2msftngp13.phx.gbl...

dwhittenburg

unread,
Nov 16, 2004, 2:41:07 PM11/16/04
to
Daniel,

Thanks for the quick response...

I thought about using a checkbox, but I'd rather use highlighting than
putting another control on the form.

Btw, that site is in Spanish. I can read the code but not the text :)

"Daniel Moth" <dmo...@hotmail.com> wrote in message
news:e$WPaNBzE...@TK2MSFTNGP14.phx.gbl...

Daniel Moth

unread,
Nov 16, 2004, 2:49:52 PM11/16/04
to
I thought it was in French :-)
Either way I don't have time to get it translated right now so you are on
your own I am afraid. Let us know if it works as advertised...

By the way, the workaround is not to use a checkbox control but to actually
use checkboxed listview. Look at the ListView.CheckBoxes boolean property.


"dwhittenburg" <dwhitt...@greenwaymedical.com> wrote in message

news:uHyQ0SBz...@TK2MSFTNGP11.phx.gbl...

dwhittenburg

unread,
Nov 16, 2004, 2:57:55 PM11/16/04
to
ah...ok...

I will check out the stuff on the site and let you know what I discover...
It also doesn't appear that it is for the Compact Framework either...

Thanks


"Daniel Moth" <dmo...@hotmail.com> wrote in message

news:eU5DRYB...@TK2MSFTNGP11.phx.gbl...

Chris Tacke, eMVP

unread,
Nov 16, 2004, 5:52:12 PM11/16/04
to
But it checkboxes in the listview do work in the CF.

--
<ctacke/>
www.OpenNETCF.org
Your CF searches start and end here


"dwhittenburg" <dwhitt...@greenwaymedical.com> wrote in message

news:OxNZMcBz...@TK2MSFTNGP15.phx.gbl...

Daniel Moth

unread,
Nov 16, 2004, 5:57:48 PM11/16/04
to
To followup, the stuff on the French site works (in an emulator at least).
As an aside, I think users would hate me if I made them use the Ctrl key to
multiselect items on a listview - LVIs with cehckboxes seems more natural...


"dwhittenburg" <dwhitt...@greenwaymedical.com> wrote in message

news:OxNZMcBz...@TK2MSFTNGP15.phx.gbl...

khorad

unread,
Nov 16, 2004, 6:10:02 PM11/16/04
to

dwhittenburg

unread,
Nov 17, 2004, 9:33:00 AM11/17/04
to
I understand what you guys are saying. But I would really like to not use a
list of check-boxes if I can find a way to create a control or something
that would allow the user to simply click the row for selection. I don't
feel that a huge list of possibly 1k entries of checkboxed items is too
natural. They wouldn't have to use the Ctrl key for mutli-select, any
clicking would activate/inactivate the row.

I'm going to keep tinkering and see what I come up with.

Thank you for you input.


"Daniel Moth" <dmo...@hotmail.com> wrote in message

news:uu$KSBDzE...@tk2msftngp13.phx.gbl...

dwhittenburg

unread,
Nov 17, 2004, 9:39:58 AM11/17/04
to
Khorad,

This looks very helpful.

Thanks

"khorad" <kh...@d.com> wrote in message
news:OThodHDz...@tk2msftngp13.phx.gbl...

Chris Tacke, eMVP

unread,
Nov 17, 2004, 2:23:58 PM11/17/04
to
I don't follow. With the ListView you have 2 possible behaviors: if you tap
the checkbox, it toggles, if you tap the row it just highlights or any tap
on the row toggles the checkbox.

--
<ctacke/>
www.OpenNETCF.org
Your CF searches start and end here

"dwhittenburg" <dwhitt...@greenwaymedical.com> wrote in message

news:%23Wk8RLL...@TK2MSFTNGP14.phx.gbl...

0 new messages