|
-
Jun 22nd, 2002, 12:19 AM
#1
-
Jun 22nd, 2002, 07:52 AM
#2
Junior Member
casting sender to listbox
try this in the event...
Dim lv As ListView = CType(sender, ListView)
then you should be able to expose e.g.
lv.selectedindex
-
Jun 22nd, 2002, 04:57 PM
#3
-
Jun 24th, 2002, 03:02 PM
#4
-
Jun 25th, 2002, 08:03 PM
#5
bump bump
I thought it's really simple! that's what the title suggests!
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jun 26th, 2002, 05:01 PM
#6
-
Jun 28th, 2002, 11:01 PM
#7
VB Code:
Do
MsgBox ("[b]bump[/b]")
Loop While True = True
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Sep 15th, 2002, 01:57 AM
#8
Lively Member
Did you ever find an answer to this?
I need to get the index of the item selected in a listview
-
Sep 15th, 2002, 02:16 AM
#9
naah, I looked back to my project again... I gave up the idea of using check boxes
what's your problem right now? casting? or figuring out if an item was really clicked?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Sep 15th, 2002, 02:41 AM
#10
Lively Member
Well, i need to find the index of the item that was clicked.
I have had to use the .FocusedItem because there isn't a .SelectedIndex anymore, but now i have found that the focuseditem isn't necessarly the item clicked....if you can follow what i mean.
If i click on the second item in the listview to send this item to a form to be edited, it will in fact get the first item in the listview not the second or third, ect.
-
Sep 15th, 2002, 02:43 AM
#11
How can you doubleclick multiple items?
'SelectedItems() wont work because the MultiSelect property in my listView is set to true.' If Multiselect is true then it should still work hence the s at the end. It just is a collection of items instead.
-
Sep 15th, 2002, 05:29 AM
#12
Lively Member
Actually, don't worry about my last post, .FocusedItem does still work ok.
I looked at it in debug and poped up a message box and it held the correct index and items, so the problem must be somewhere else. I think it's getting the first item from the array, not sure whats going on yet.
-
Sep 15th, 2002, 02:59 PM
#13
you could just check SelectedItems(0)
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Sep 16th, 2002, 06:53 PM
#14
Lively Member
Ahhhhhhh, i worked out what the problem was, i forgot to add 1 to the array that was why it was getting the first item all the time.
When i added a third item to the listview it was getting the second one and it then dawned on me what i had done.
This is what happens when your tired and been staring at code for six hours.
Must remember to get up and get out of the house, once in awhile.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|