I have a form with a listview control and a textbox. When I change focus
from the listview to the textbox, the highlighted item on the listview loses
the highlight. That is not the behavior I need.
I am using VB2008 express. I see that the behavior of a similar program in
VB6 is the same.
When the controls are a listbox and a textbox, the highlighted item remains
highlighted when changing focus to the textbox. So I might guess that this
can be done with a listview.
Am I missing something or just out of luck? 6 5644
"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:uO**************@TK2MSFTNGP03.phx.gbl...
>I have a form with a listview control and a textbox. When I change focus from the listview to the textbox, the highlighted item on the listview loses the highlight. That is not the behavior I need.
I am using VB2008 express. I see that the behavior of a similar program
in VB6 is the same.
When the controls are a listbox and a textbox, the highlighted item
remains highlighted when changing focus to the textbox. So I might guess
that this can be done with a listview.
Am I missing something or just out of luck?
Set the HideSelection property of the ListView to false to stop that
behaviour.
Hope this helps
Lloyd Sheen
"Lloyd Sheen" <a@b.cwrote in message
news:ep**************@TK2MSFTNGP03.phx.gbl...
>
"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:uO**************@TK2MSFTNGP03.phx.gbl...
>>I have a form with a listview control and a textbox. When I change focus from the listview to the textbox, the highlighted item on the listview loses the highlight. That is not the behavior I need.
I am using VB2008 express. I see that the behavior of a similar program in VB6 is the same.
When the controls are a listbox and a textbox, the highlighted item remains highlighted when changing focus to the textbox. So I might guess that this can be done with a listview.
Am I missing something or just out of luck?
Set the HideSelection property of the ListView to false to stop that
behaviour.
Hope this helps
Lloyd Sheen
Thanks. I really appreciate the reply. Based on the property name, I did
some research and found a sample code at http://msdn2.microsoft.com/en-us/lib...on(VS.71).aspx
Unfortunately using the HideSelection property doesn't seem to work either
in my application or in the sample code.
All the words describing hideselection are right but false or true, the
result is the same. I tried both VB2008 Express and VB2005 Express.
Anyone able to make this work?
"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>
"Lloyd Sheen" <a@b.cwrote in message
news:ep**************@TK2MSFTNGP03.phx.gbl...
>> "Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message news:uO**************@TK2MSFTNGP03.phx.gbl...
>>>I have a form with a listview control and a textbox. When I change focus from the listview to the textbox, the highlighted item on the listview loses the highlight. That is not the behavior I need.
I am using VB2008 express. I see that the behavior of a similar program in VB6 is the same.
When the controls are a listbox and a textbox, the highlighted item remains highlighted when changing focus to the textbox. So I might guess that this can be done with a listview.
Am I missing something or just out of luck? Set the HideSelection property of the ListView to false to stop that behaviour.
Hope this helps Lloyd Sheen
Thanks. I really appreciate the reply. Based on the property name, I did
some research and found a sample code at http://msdn2.microsoft.com/en-us/lib...on(VS.71).aspx
Unfortunately using the HideSelection property doesn't seem to work either
in my application or in the sample code.
All the words describing hideselection are right but false or true, the
result is the same. I tried both VB2008 Express and VB2005 Express.
Anyone able to make this work?
Reading further I find:
When this property is set to false, selected items in the ListView control
remain highlighted in a different color than the current selection color
specified by the operating system when the ListView control loses focus.
On my screen the "different color" is the same as unhighlighted. In the
display appearance settings I find "selected Items" but nothing suggesting a
different selected item color.
Any ideas?
"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:eR**************@TK2MSFTNGP06.phx.gbl...
>
"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>> "Lloyd Sheen" <a@b.cwrote in message news:ep**************@TK2MSFTNGP03.phx.gbl...
>>> "Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message news:uO**************@TK2MSFTNGP03.phx.gbl... I have a form with a listview control and a textbox. When I change focus from the listview to the textbox, the highlighted item on the listview loses the highlight. That is not the behavior I need.
I am using VB2008 express. I see that the behavior of a similar program in VB6 is the same.
When the controls are a listbox and a textbox, the highlighted item remains highlighted when changing focus to the textbox. So I might guess that this can be done with a listview.
Am I missing something or just out of luck?
Set the HideSelection property of the ListView to false to stop that behaviour.
Hope this helps Lloyd Sheen
Thanks. I really appreciate the reply. Based on the property name, I did some research and found a sample code at http://msdn2.microsoft.com/en-us/lib...on(VS.71).aspx
Unfortunately using the HideSelection property doesn't seem to work either in my application or in the sample code.
All the words describing hideselection are right but false or true, the result is the same. I tried both VB2008 Express and VB2005 Express.
Anyone able to make this work?
Reading further I find:
When this property is set to false, selected items in the ListView control
remain highlighted in a different color than the current selection color
specified by the operating system when the ListView control loses focus.
On my screen the "different color" is the same as unhighlighted. In the
display appearance settings I find "selected Items" but nothing suggesting
a different selected item color.
Any ideas?
Are you using Vista and Aero? If so the difference is most likely hard to
see.
LS
"Lloyd Sheen" <a@b.cwrote in message
news:eU**************@TK2MSFTNGP06.phx.gbl...
>
"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:eR**************@TK2MSFTNGP06.phx.gbl...
>> "Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>>> "Lloyd Sheen" <a@b.cwrote in message news:ep**************@TK2MSFTNGP03.phx.gbl...
"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message news:uO**************@TK2MSFTNGP03.phx.gbl... >I have a form with a listview control and a textbox. When I change >focus from the listview to the textbox, the highlighted item on the >listview loses the highlight. That is not the behavior I need. > I am using VB2008 express. I see that the behavior of a similar program in VB6 is the same. > When the controls are a listbox and a textbox, the highlighted item remains highlighted when changing focus to the textbox. So I might guess that this can be done with a listview. > Am I missing something or just out of luck? >
Set the HideSelection property of the ListView to false to stop that behaviour.
Hope this helps Lloyd Sheen
Thanks. I really appreciate the reply. Based on the property name, I did some research and found a sample code at http://msdn2.microsoft.com/en-us/lib...on(VS.71).aspx
Unfortunately using the HideSelection property doesn't seem to work either in my application or in the sample code.
All the words describing hideselection are right but false or true, the result is the same. I tried both VB2008 Express and VB2005 Express.
Anyone able to make this work? Reading further I find:
When this property is set to false, selected items in the ListView control remain highlighted in a different color than the current selection color specified by the operating system when the ListView control loses focus.
On my screen the "different color" is the same as unhighlighted. In the display appearance settings I find "selected Items" but nothing suggesting a different selected item color.
Any ideas?
Are you using Vista and Aero? If so the difference is most likely hard to
see.
LS
If there is a difference. I am using XP.
"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:eL**************@TK2MSFTNGP03.phx.gbl...
>
"Lloyd Sheen" <a@b.cwrote in message
news:eU**************@TK2MSFTNGP06.phx.gbl...
>> "Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message news:eR**************@TK2MSFTNGP06.phx.gbl...
>>> "Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl.. .
"Lloyd Sheen" <a@b.cwrote in message news:ep**************@TK2MSFTNGP03.phx.gbl... > "Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message news:uO**************@TK2MSFTNGP03.phx.gbl.. . >>I have a form with a listview control and a textbox. When I change >>focus from the listview to the textbox, the highlighted item on the >>listview loses the highlight. That is not the behavior I need. >> >I am using VB2008 express. I see that the behavior of a similar >program in VB6 is the same. >> >When the controls are a listbox and a textbox, the highlighted item >remains highlighted when changing focus to the textbox. So I might >guess that this can be done with a listview. >> >Am I missing something or just out of luck? >> > Set the HideSelection property of the ListView to false to stop that behaviour. > Hope this helps Lloyd Sheen
Thanks. I really appreciate the reply. Based on the property name, I did some research and found a sample code at http://msdn2.microsoft.com/en-us/lib...on(VS.71).aspx
Unfortunately using the HideSelection property doesn't seem to work either in my application or in the sample code.
All the words describing hideselection are right but false or true, the result is the same. I tried both VB2008 Express and VB2005 Express.
Anyone able to make this work?
Reading further I find:
When this property is set to false, selected items in the ListView control remain highlighted in a different color than the current selection color specified by the operating system when the ListView control loses focus.
On my screen the "different color" is the same as unhighlighted. In the display appearance settings I find "selected Items" but nothing suggesting a different selected item color.
Any ideas? Are you using Vista and Aero? If so the difference is most likely hard to see.
LS
If there is a difference. I am using XP.
There is a difference. The highlight is very light and is even invisible
unless I look at my LCD screen from an angle (not directly). So your advice
was right on. Only the result is not as good as might be expected. Thanks
again. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Brian S |
last post by:
I have a custom listView that works fine. There are items that are
colored red to notify the user that there is a problem. However, if
you select one of the red items, then select space below any...
|
by: Giang Pham |
last post by:
Dear all,
When I add one row in my listview (type : details), I want to set it as
selected.
How could I do this ?
Thank you a lot.
|
by: JR Lyon |
last post by:
Does anyone know how to select the highlighted item on a form. My problem is
that I have a link label which is above a button. I want the button to
highlight when I open the form but the link label...
|
by: Al Findlay |
last post by:
Hello!
I have a listview which has a column of images. The problem is, I want
to be able to align the images to the centre of the column. By
default, the images always align to the left.
Can...
|
by: andreas.baus |
last post by:
Hello. Is there a way to add custom code that is executed every time a
ListViewItem is added to the Items collection of a ListView control?
There does not seem to be an event that I could hook...
|
by: John |
last post by:
any help would be appreciated
Thanks
|
by: alexia.bee |
last post by:
Hi All,
I am trying to get the index of an item that the mouse is pointing/
hovering at.
Meaning, when user click the Combobox, droplist is show. When you
hover the mouse on item, it highlight...
|
by: Jon Slaughter |
last post by:
How do I add the ability to combine listview with treeview? I want to have a
list view but with some items in some columns to have the ability to act as
a tree instead of just a single item. (like,...
|
by: rahulkawadgave |
last post by:
Hi,
I m working on viewing detials for a contact in windows mobile through my
application.
I am able to display the native contact details screen in my application.
...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |