473,804 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TreeView: Unwanted Yellow Rectangle?


I've got a TreeView that's loaded with names.

Screen snap at http://tinyurl.com/329a8m

A yellow rectangle appears as the cursor navigates the tree list.
If the cursor is left on an entry, the rectangle spontaneously
disappears after approximately 3 seconds.

In a small way, I find it annoying and assume that at least some
of my users will too.

If I set a node name via the immediate window e.g.

forms(frmCompan yGroup)!treList .nodes(9) = "xxx"

the yellow-rectangle behavior stops for the entire tree - even
after the tree has been reloaded. It does not resume until the
form is closed and then opened again.

I would like to be turn it off completely when I open the form.

??

Sep 5 '07 #1
1 1360
Per PeteCresswell:
>A yellow rectangle appears as the cursor navigates the tree list.
I misstated that.

It's appearing with MouseOver, not actual selection.
--
PeteCresswell
Sep 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3320
by: (Pete Cresswell) | last post by:
I've got a TreeView on the left of my screen. As the user navigates the tree, I load corresonding detail info into the rest of the screen. Works ok, but when the user clicks on a detail field, the TreeView's selection rectangle goes away and the user is left wondering what happened. Seems like there ought TB a way to preserve that rectangle. The optimal would be to have it go grey when the control loses focus and return to blue whe...
1
6072
by: timtos | last post by:
I am working on a custom treeView and have some problems with a) node.Bounds.Width b) concatenate strings drawn with DrawString(...) a) I want to highlight a selected node and used the node.Bounds dimensions to draw a rectangle around the node but the node.Bounds.Width property seems to be wrong. Sometimes the rectangle is too large and sometimes it is too small; something like this
2
1670
by: tzvikaz | last post by:
Let's say I have this db: Table: Companies ------- Ford Toyota BMW Table: CarTypes --------
2
5331
by: casmang | last post by:
I am having the problem where when I change the font of a TreeNode in a TreeView to a bold property, the bounds or rectangle that draws the node does not expand so that the text ends up being cut off as shown in the attached image. I have read all sorts of suggestions about making all the font bold first, then changing it back to regular which seems to work, but is sort of a crappy solution. My question: Is there any way to just override...
3
11231
by: Gerhard | last post by:
I have the following code in an .net 2.0 project: <asp:Panel Runat="server" id="pnlNavigation" CssClass="pnlNavigation" Width="165px"> <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" CssClass="nav" BorderStyle="None" CollapseImageToolTip="" ExpandImageToolTip="" ShowExpandCollapse="False"> <LevelStyles> <asp:TreeNodeStyle CssClass="homenav" Font-Underline="False" />
3
11638
by: John | last post by:
I have overridden the default DrawNode (OwnerDrawText mode) to allow me to draw an extra icon at the front of the text block, while still using the built-in icon list for another icon. The problem I am having is that when a node is selected it snips the text to the length of the text minus the length of the extra icon. Is there a way to redefine the selection box size for each node? The DrawNode code is as follows :
0
1493
by: sunny076 | last post by:
Hi, In my application, I use treeview inside a frame so when a tree node is clicked, it will direct to the main content only. I have set the selectednodeStyle with BackColor="Yellow", but when I selected the first node and then sleect another the back color is still yellow for the former one. The OnSelectedNodeChange event is never get fired. Below is my code excerpt: In TreePane.aspx
18
15383
by: =?Utf-8?B?TGkgV2VuZw==?= | last post by:
Hi, Is there a way for TreeView to have multiple selections? But I am not talking about its checked boxes. I want a way similar to ListView with MultiSelect = True. So I can use or key and click to make multiple selections. Then when I simply click one item, all previous selections are gone. Thanks in advance.
1
1300
by: markvbuser | last post by:
Hi all, I'm just learning vb2008 and i have a problem, I'm populating a treeview with a hard drive directory structure. This is my code: I've populated the treeview with the available drives and the first level of directories for each drive. Then I'm using this code to get the selected node when the user
0
9593
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
jinu1996
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...
1
7633
isladogs
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...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.