Hello,

how can i select a item in a Listwiew?

Thanks

Ralf

Re: Listview by Alex

Alex
Mon Jan 26 11:01:31 CST 2004

Listview1.Items[i].Selected = true;

"Ralf" <ralfeaddfaxring.de> wrote in message
news:uzvMsxA5DHA.1428@TK2MSFTNGP12.phx.gbl...
> Hello,
>
> how can i select a item in a Listwiew?
>
> Thanks
>
> Ralf
>
>



RE: Listview by sergeyk

sergeyk
Mon Jan 26 12:01:06 CST 2004

Hello Ralf,

You need to set the Selected and Focused properties to true of the
listviewitem you want to select. For example,

this.listView.Items[1].Focused = true;
this.listView.Items[1].Selected = true;

Best regards,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Ralf" <ralfeaddfaxring.de>
| Subject: Listview
| Date: Mon, 26 Jan 2004 14:00:11 +0100
| Lines: 9
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uzvMsxA5DHA.1428@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: pd9ffeea0.dip.t-dialin.net 217.255.238.160
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:44005
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hello,
|
| how can i select a item in a Listwiew?
|
| Thanks
|
| Ralf
|
|
|


Re: Listview by Lorents

Lorents
Wed Jan 28 09:34:09 CST 2004

Seems to me that it is enough to set "Selected = true". What does the
"Focused = true" do?

Best regards
Lorents Hildrum

"Serg Kuryata [MS]" <sergeyk@online.microsoft.com> wrote in message
news:0akljZD5DHA.1512@cpmsftngxa07.phx.gbl...
> Hello Ralf,
>
> You need to set the Selected and Focused properties to true of the
> listviewitem you want to select. For example,
>
> this.listView.Items[1].Focused = true;
> this.listView.Items[1].Selected = true;
>
> Best regards,
> Sergiy.
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> --------------------
> | From: "Ralf" <ralfeaddfaxring.de>
> | Subject: Listview
> | Date: Mon, 26 Jan 2004 14:00:11 +0100
> | Lines: 9
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> | Message-ID: <uzvMsxA5DHA.1428@TK2MSFTNGP12.phx.gbl>
> | Newsgroups: microsoft.public.dotnet.framework.compactframework
> | NNTP-Posting-Host: pd9ffeea0.dip.t-dialin.net 217.255.238.160
> | Path:
>
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.
> phx.gbl
> | Xref: cpmsftngxa07.phx.gbl
> microsoft.public.dotnet.framework.compactframework:44005
> | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> |
> | Hello,
> |
> | how can i select a item in a Listwiew?
> |
> | Thanks
> |
> | Ralf
> |
> |
> |
>



Re: Listview by Chris

Chris
Wed Jan 28 10:19:43 CST 2004

ListViews have a selection (the highlighted area), which can be one or more
items, and a focus (usually has a outline square around it), which can be
1and only 1 item.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


"Lorents Hildrum" <lorents@lorsoft.no> wrote in message
news:u%23oz9Qb5DHA.1592@TK2MSFTNGP10.phx.gbl...
> Seems to me that it is enough to set "Selected = true". What does the
> "Focused = true" do?
>
> Best regards
> Lorents Hildrum
>
> "Serg Kuryata [MS]" <sergeyk@online.microsoft.com> wrote in message
> news:0akljZD5DHA.1512@cpmsftngxa07.phx.gbl...
> > Hello Ralf,
> >
> > You need to set the Selected and Focused properties to true of the
> > listviewitem you want to select. For example,
> >
> > this.listView.Items[1].Focused = true;
> > this.listView.Items[1].Selected = true;
> >
> > Best regards,
> > Sergiy.
> >
> > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > --------------------
> > | From: "Ralf" <ralfeaddfaxring.de>
> > | Subject: Listview
> > | Date: Mon, 26 Jan 2004 14:00:11 +0100
> > | Lines: 9
> > | X-Priority: 3
> > | X-MSMail-Priority: Normal
> > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> > | Message-ID: <uzvMsxA5DHA.1428@TK2MSFTNGP12.phx.gbl>
> > | Newsgroups: microsoft.public.dotnet.framework.compactframework
> > | NNTP-Posting-Host: pd9ffeea0.dip.t-dialin.net 217.255.238.160
> > | Path:
> >
>
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.
> > phx.gbl
> > | Xref: cpmsftngxa07.phx.gbl
> > microsoft.public.dotnet.framework.compactframework:44005
> > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> > |
> > | Hello,
> > |
> > | how can i select a item in a Listwiew?
> > |
> > | Thanks
> > |
> > | Ralf
> > |
> > |
> > |
> >
>
>