my code:
private void Form1_Load(object sender, System.EventArgs e)
{
listView1.Columns.Add("Item", 50, HorizontalAlignment.Center);
listView1.Items.Add(new ListViewItem("item1"));
listView1.Items.Add(new ListViewItem("item2"));
}
private void listView1_SelectedIndexChanged(object sender, System.EventArgs
e)
{
if (listView1.SelectedIndices.Count == 1)
MessageBox.Show("listview");
//listView1.Focus(); // doesn't help
}
have you tried giving your form the focus after the popup dialog box has
gone rather than the list view
shaun
"Bruce Bakely" <NOSPAM_br...@pyxis.com> wrote in message
news:ujv6ZONa...@TK2MSFTNGP12.phx.gbl...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003
Or maybe both the ListView and the form?
/Keld Laursen
"Keld Laursen" <k...@ideelektronik.dk> wrote in message
news:uoe7L$saDHA...@TK2MSFTNGP09.phx.gbl...
"Keld Laursen" <k...@ideelektronik.dk> wrote in message
news:uoe7L$saDHA...@TK2MSFTNGP09.phx.gbl...
I've just been talking with the ListView devs and we repro'd the bug. I've
opened a bug against the dev and we're tracking this issue now.
Thank you very much for the feedback and I'll make sure we get this fixed.
Carlton Lane.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Reply-To: "Bruce Bakely" <NOSPAM_br...@pyxis.com>
| From: "Bruce Bakely" <NOSPAM_br...@pyxis.com>
| References: <ujv6ZONa...@TK2MSFTNGP12.phx.gbl>
<eqlPUNWa...@TK2MSFTNGP10.phx.gbl>
<uoe7L$saDHA...@TK2MSFTNGP09.phx.gbl>
| Subject: Re: bug with listview in C# - 2 clicks required to select item
| Date: Mon, 25 Aug 2003 13:38:56 -0700
| Lines: 22
| Organization: Pyxis
| 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: <egWvul0a...@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: fw254.pyxis.com 205.162.243.254
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP0
8.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:31924
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework