I have recently upgraded from vb.net 2002 to 2005, and have
encountered the following problem.
I have a listview with say a dozen items. Following a user action I
programmaticall y update the background colour of the currently
selected item to red. Lets say in this case it was the 3rd row.
The 3rd row is still the current item, so its still got a blue
background. Now in the past if I scrolled down or clicked on another
row, I would see the 3rd row with a red background, but now I don't -
its white. If I resize the window (which resizes the listview) I
suddenly see the 3rd row with a red background, but if I select it,
and then something else, then it goes back to being white until I
resize again, when it again is red. 4 6818
"ari" <un******@yahoo .comschrieb
I have recently upgraded from vb.net 2002 to 2005, and have
encountered the following problem.
I have a listview with say a dozen items. Following a user action I
programmaticall y update the background colour of the currently
selected item to red. Lets say in this case it was the 3rd row.
The 3rd row is still the current item, so its still got a blue
background. Now in the past if I scrolled down or clicked on another
row, I would see the 3rd row with a red background, but now I don't
- its white. If I resize the window (which resizes the listview) I
suddenly see the 3rd row with a red background, but if I select it,
and then something else, then it goes back to being white until I
resize again, when it again is red.
I don't see which problem you have with the VB.Net language. The Treeview is
a .Net Framework component shared by all Framework clients, so the right
place to ask is a Framework group, like
m.p.dotnet.fram ework.windowsfo rms.controls.
Armin
"ari" <un******@yahoo .comwrote in message
news:9c******** *************** ***********@s1g 2000prg.googleg roups.com...
>I have recently upgraded from vb.net 2002 to 2005, and have
encountered the following problem.
I have a listview with say a dozen items. Following a user action I
programmaticall y update the background colour of the currently
selected item to red. Lets say in this case it was the 3rd row.
The 3rd row is still the current item, so its still got a blue
background. Now in the past if I scrolled down or clicked on another
row, I would see the 3rd row with a red background, but now I don't -
its white. If I resize the window (which resizes the listview) I
suddenly see the 3rd row with a red background, but if I select it,
and then something else, then it goes back to being white until I
resize again, when it again is red.
What you are seeing is the selected row color (when you select it).
When it is not selected it will have the background colour you assigned.
Selected colour is set by the user in themes for windows.
LS
On Nov 19, 8:31*pm, "Lloyd Sheen" <a...@b.cwrot e:
"ari" <uniko...@yahoo .comwrote in message
news:9c******** *************** ***********@s1g 2000prg.googleg roups.com...
I have recently upgraded from vb.net 2002 to 2005, and have
encountered the following problem.
I have a listview with say a dozen items. Following a user action I
programmaticall y update the background colour *of the currently
selected item to red. Lets say in this case it was the 3rd row.
The 3rd row is still the current item, so its still got a blue
background. Now in the past if I scrolled down or clicked on another
row, I would see the 3rd row with a red background, but now I don't -
its white. If I resize the window (which resizes the listview) I
suddenly see the 3rd row with a red background, but if I select it,
and then something else, then it goes back to being white until I
resize again, when it again is red.
What you are seeing is the selected row color (when you select it).
When it is not selected it will have the background colour you assigned.
Selected colour is set by the user in themes for windows.
LS
No - the problem is that when it is not selected I am NOT seeing the
background I assigned, I am only seeing white. Only when I resize the
window does it apply the color I assigned.
"ari" <un******@yahoo .comwrote in message
news:64******** *************** ***********@v13 g2000yqm.google groups.com...
On Nov 19, 8:31 pm, "Lloyd Sheen" <a...@b.cwrot e:
"ari" <uniko...@yahoo .comwrote in message
news:9c******** *************** ***********@s1g 2000prg.googleg roups.com...
I have recently upgraded from vb.net 2002 to 2005, and have
encountered the following problem.
I have a listview with say a dozen items. Following a user action I
programmaticall y update the background colour of the currently
selected item to red. Lets say in this case it was the 3rd row.
The 3rd row is still the current item, so its still got a blue
background. Now in the past if I scrolled down or clicked on another
row, I would see the 3rd row with a red background, but now I don't -
its white. If I resize the window (which resizes the listview) I
suddenly see the 3rd row with a red background, but if I select it,
and then something else, then it goes back to being white until I
resize again, when it again is red.
What you are seeing is the selected row color (when you select it).
When it is not selected it will have the background colour you assigned.
Selected colour is set by the user in themes for windows.
LS
No - the problem is that when it is not selected I am NOT seeing the
background I assigned, I am only seeing white. Only when I resize the
window does it apply the color I assigned.
Ok do you have the HideSelection of the control set to True, if so set it to
False
LS This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: InvisibleDuncan |
last post by:
I have a ListView that populates some fields whenever the user selects an item. However, if they change the data in the fields and then select a new item without saving, I want to display a message box that warns that their changes will be lost, and asks them to confirm whether to continue. Sounds simple
Unfortunately, the ListView's SelectedIndexChanged event cannot be cancelled, and it's actually called for each change in the selection. So,...
|
by: Bob Geltz |
last post by:
I am able to populate a ListView with several detail lines (several
columns). When finished, I would like to pre-select the first item in the
list (before the user interacts with the list). This way, if a user clicks
on the OK button, there will be a default selection.
I know how to use ListView.SelectedItems to get the selection,
I just don't know how to make an item be selected without the
user actually clicking on a line.
For a...
|
by: youngie |
last post by:
I've got a listview on a form in report style. It's populated with 40
item. I want to prevent the used clicking on some items, and if the
user clicks on one of these items I want the selection to revert back
to the old selection, hideselection property if false, listview is
single select.
In the OnSelectedChange() handler I test to see if the newly selected
item is a selectable one, if it's not, I try to change the selection
like so.
|
by: Matt Michael |
last post by:
Hi,
I'm having a problem working with a listview in an application I'm writing.
Currently, whenever the selectedindex changed event fires, it loads up a
htmledit control, and other labels on the form, with the current information
associated with the listview item. Whenever I click on each item, it works
fine, but it seems that whenever I use the up/down arrows(important) to
scroll through the list, it loses focus, and goes to the...
|
by: Matt Michael |
last post by:
Hi,
I'm having a problem working with a listview in an application I'm writing.
Currently, whenever the selectedindex changed event fires, it loads up a
htmledit control, and other labels on the form, with the current information
associated with the listview item. The control is called HtmlEdit and it
references Microsoft.Mshtml Whenever I click on each item, it works fine,
but it seems that whenever I use the up/down arrows(important)...
| |
by: Brian Henry |
last post by:
Ok whats going on here... got a couple problems... this is relevant now to
this group since .NET 2.0 is finally RTM
1) draws really slow when making it a large form (resizing speed is jerky)
to a res from 100x100 to 1280x1024 once it gets above 500x500 it starts
jerking you can see the screen refreshing as it paints
2) sometimes the background selection when you select multiple items then
move the mouse around on the screen dissapear...
|
by: Brandon McCombs |
last post by:
Hello,
I have a form that contains a listview on the left side and a column of
buttons on the right side. Only some of the buttons do I want enabled
all the time. The other buttons should be enabled only if something is
selected in the listview. That part specifically works but not very
well. It seems that I can only get the buttons to disable if I click off
the text of the items in the listview but still within about 10-20
pixels of...
|
by: Jure Bogataj |
last post by:
Hi all!
I have a problem (performance issue) with listview. I have implemented an
ItemSelectionChange on my listview and put some code in it (I build some
toolbar based on selection and update info in statusbar). When selecting one
item (clicking on listview) it works fast, without noticing. However if
selecting multiple items with SHIFT (approx. 500 items) or selecting with
mouse, for each item selected through all listview an event...
|
by: Rich Raffenetti |
last post by:
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |