|
-
Apr 11th, 2009, 09:01 PM
#1
Thread Starter
Fanatic Member
listview selection
my problem is the listview, when i select the second row it works. now the focus goes to another control.. then the problem is when i go back to the listview.. there are no selected item already?
what should i do so that the last row selected do not change?
-
Apr 11th, 2009, 09:48 PM
#2
Re: listview selection
how do you go back to listview?
what code are you using for listview events?
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Apr 11th, 2009, 11:09 PM
#3
Thread Starter
Fanatic Member
Re: listview selection
i have to code.. i just select a row.. and show a form.. after closing the form.. the selected row is already unselected.
-
Apr 12th, 2009, 06:36 AM
#4
Re: listview selection
When focus moves away the highlighting will move away and that would definately happen if the form is closed and then reopened/reloaded.
-
Apr 12th, 2009, 06:19 PM
#5
Re: listview selection
you could save the index of the selected item then reselect it by code, either to a variable for while the program is running, or to file of sometype for use when the program starts
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Apr 13th, 2009, 05:10 AM
#6
Re: listview selection
Set the HideSelection property of the listview control to False
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
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
|