Click here to Skip to main content
16,012,223 members
Home / Discussions / C#
   

C#

 
GeneralRe: Unsubscribing from an event Pin
Charlie Williams21-May-04 7:56
Charlie Williams21-May-04 7:56 
GeneralDataTable Pin
IamADotNetGuy21-May-04 7:26
IamADotNetGuy21-May-04 7:26 
GeneralRe: DataTable Pin
Heath Stewart21-May-04 8:53
protectorHeath Stewart21-May-04 8:53 
GeneralListView on select Pin
Adam Hable21-May-04 6:44
Adam Hable21-May-04 6:44 
GeneralRe: ListView on select Pin
Heath Stewart21-May-04 6:57
protectorHeath Stewart21-May-04 6:57 
GeneralRe: ListView on select Pin
Adam Hable21-May-04 9:10
Adam Hable21-May-04 9:10 
GeneralRe: ListView on select Pin
Heath Stewart21-May-04 9:18
protectorHeath Stewart21-May-04 9:18 
GeneralRe: ListView on select Pin
Adam Hable21-May-04 9:21
Adam Hable21-May-04 9:21 
Obviously not a problem, I just wanted to make sure I didn't make a mistake by trying something else. Here is the entire event:

private void listView1_SelectedIndexChanged(object sender, System.EventArgs e)
{
int index = listView1.FocusedItem.Index;
if (index >= 0)
{
ListViewItem item = listView1.Items[index];
string value = item.SubItems[0].Text;
MessageBox.Show(value);
}

}


I created a new project and left defaults (So that's why the 'listView1' naming) -- but it fires twice on the MessageBox.Show I agree - it shouldn't, so that's why I'm so confused!

I did just uninstall VS.Net 2k2 Pro and install a fresh copy of VS.Net 2k3 Ent. Architect, I doubt that has anything to do with this error but...could it?
GeneralRe: ListView on select Pin
Heath Stewart21-May-04 9:35
protectorHeath Stewart21-May-04 9:35 
GeneralRe: ListView on select Pin
Adam Hable21-May-04 9:55
Adam Hable21-May-04 9:55 
GeneralRe: ListView on select Pin
Heath Stewart21-May-04 9:57
protectorHeath Stewart21-May-04 9:57 
GeneralRe: ListView on select Pin
valikac21-May-04 7:08
valikac21-May-04 7:08 
GeneralRe: ListView on select Pin
Heath Stewart21-May-04 9:20
protectorHeath Stewart21-May-04 9:20 
GeneralOne about Remoting Pin
Diego F.21-May-04 6:22
Diego F.21-May-04 6:22 
GeneralRe: One about Remoting Pin
Heath Stewart21-May-04 6:46
protectorHeath Stewart21-May-04 6:46 
GeneralRe: One about Remoting Pin
Diego F.21-May-04 7:56
Diego F.21-May-04 7:56 
GeneralRe: One about Remoting Pin
Heath Stewart21-May-04 8:48
protectorHeath Stewart21-May-04 8:48 
GeneralRe: One about Remoting Pin
Diego F.22-May-04 4:06
Diego F.22-May-04 4:06 
GeneralRe: One about Remoting Pin
Heath Stewart22-May-04 4:11
protectorHeath Stewart22-May-04 4:11 
GeneralRe: One about Remoting Pin
Diego F.24-May-04 5:42
Diego F.24-May-04 5:42 
GeneralRe: One about Remoting Pin
Heath Stewart24-May-04 5:46
protectorHeath Stewart24-May-04 5:46 
GeneralRe: One about Remoting Pin
Diego F.25-May-04 6:05
Diego F.25-May-04 6:05 
GeneralRe: One about Remoting Pin
Heath Stewart25-May-04 6:43
protectorHeath Stewart25-May-04 6:43 
GeneralRe: One about Remoting Pin
Diego F.25-May-04 21:41
Diego F.25-May-04 21:41 
GeneralRe: One about Remoting Pin
Heath Stewart26-May-04 3:12
protectorHeath Stewart26-May-04 3:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.