|
-
Jun 5th, 2007, 08:03 AM
#1
Thread Starter
Frenzied Member
-
Jun 5th, 2007, 08:26 AM
#2
Re: Show 2 controls as selected at same time
Make sure HideSelection is set to False for both controls.
-
Jun 5th, 2007, 08:46 AM
#3
Thread Starter
Frenzied Member
Re: Show 2 controls as selected at same time
Doesn't this select the Listview, but not in the 'Blue' highlighted colour?
I was hoping to get both the same, as in the picture.
I can't quite test it yet as I am having trouble here in this thread (Thread sorted now)
Last edited by aikidokid; Jun 5th, 2007 at 09:56 AM.
-
Jun 5th, 2007, 08:57 AM
#4
Re: Show 2 controls as selected at same time
You could use a listbox instead of a listview. Assuming you don't want to do that, I know you can set the color of listview items. Not sure if that includes the background color, but I imagine it might.
-
Jun 5th, 2007, 09:53 AM
#5
Re: Show 2 controls as selected at same time
 Originally Posted by aikidokid
Doesn't this select the Listview, but not in the 'Blue' highlighted colour?
It keeps the selected text highlighted even when the control looses focus.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Jun 5th, 2007, 09:55 AM
#6
Re: Show 2 controls as selected at same time
That's a gray highlight, not the standard blue one. (Inactive highlight.)
-
Jun 5th, 2007, 10:14 AM
#7
Re: Show 2 controls as selected at same time
-
Jun 5th, 2007, 10:16 AM
#8
Thread Starter
Frenzied Member
Re: Show 2 controls as selected at same time
 Originally Posted by zynder
Thanks zynder, I have just been looking at them 
So, in your original post (2006) did you end up using a ListBox instead, or did you settle for not having the ListView highlighted the same as the ListBox image?
-
Jun 5th, 2007, 10:22 AM
#9
Re: Show 2 controls as selected at same time
I used listbox instead. I didn't bother to mimic the effects of listbox to a listview control. You see, the highlight color isnt blue but gray. But i know you can subclass it and actually draw the color you want but i dont want get myself into more trouble.
So i ended up using listbox and the autocomplete is perfect. But in your case since you're using multi columns better stick to listview although you can span it in listbox using vbTab. Well, it's up to you.
-
Jun 5th, 2007, 10:33 AM
#10
Thread Starter
Frenzied Member
Re: Show 2 controls as selected at same time
 Originally Posted by zynder
I used listbox instead. I didn't bother to mimic the effects of listbox to a listview control. You see, the highlight color isnt blue but gray. But i know you can subclass it and actually draw the color you want but i dont want get myself into more trouble.
So i ended up using listbox and the autocomplete is perfect. But in your case since you're using multi columns better stick to listview although you can span it in listbox using vbTab. Well, it's up to you.
I think I will have a little play with it and see what I end up with.
Thanks for your help and the code samples
-
Jun 5th, 2007, 10:48 AM
#11
Re: Show 2 controls as selected at same time
No problem dude. If you have any problems just let us know.
-
Jun 7th, 2007, 11:28 AM
#12
Thread Starter
Frenzied Member
Re: Show 2 controls as selected at same time
Changed the form and code about a bit and now I have what I was after, but using the listbox, not the listview.
Thanks all who helped
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
|