473,326 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Treeview strange behavior

Hello,

I am in the process of converting a project from VB6 to DotNet and have
noticed that some strange behavior with the TreeView Control

(1) when setting the NodeFont property to Bold I cannot see the complete
text.
(2) when selecting a child node that has a different icon from its parent,
it takes on the parents' icon.

Has anyone else experienced these problems and is there a work around?

Thanks,
Dan
Nov 20 '05 #1
4 1853
Well ugh, post us some code! I'm using a treeview fine with my app.

"solex" <so***@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello,

I am in the process of converting a project from VB6 to DotNet and have
noticed that some strange behavior with the TreeView Control

(1) when setting the NodeFont property to Bold I cannot see the complete
text.
(2) when selecting a child node that has a different icon from its parent,
it takes on the parents' icon.

Has anyone else experienced these problems and is there a work around?

Thanks,
Dan

Nov 20 '05 #2
* "solex" <so***@nowhere.com> scripsit:
I am in the process of converting a project from VB6 to DotNet and have
noticed that some strange behavior with the TreeView Control

(1) when setting the NodeFont property to Bold I cannot see the complete
text.
(2) when selecting a child node that has a different icon from its parent,
it takes on the parents' icon.

Has anyone else experienced these problems and is there a work around?


Do you use the new Windows Forms TreeView control or the old ActiveX
component (Microsoft Windows Common Controls)?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
I am using the .NET version.

I found the answer to both of my questions, (1) is a bug, I need to set the
treeview Font to bold and then set the individual nodes to regular in order
to see the bolded nodes (2) I was unaware of the SelectedImageIndex property
of the treeNode object and need to set it manually every time a node is
selected.

Thanks,

Dan
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...
* "solex" <so***@nowhere.com> scripsit:
I am in the process of converting a project from VB6 to DotNet and have
noticed that some strange behavior with the TreeView Control

(1) when setting the NodeFont property to Bold I cannot see the complete
text.
(2) when selecting a child node that has a different icon from its parent, it takes on the parents' icon.

Has anyone else experienced these problems and is there a work around?


Do you use the new Windows Forms TreeView control or the old ActiveX
component (Microsoft Windows Common Controls)?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #4
* "solex" <so***@nowhere.com> scripsit:
I found the answer to both of my questions, (1) is a bug, I need to set the
treeview Font to bold and then set the individual nodes to regular in order
to see the bolded nodes (2) I was unaware of the SelectedImageIndex property
of the treeNode object and need to set it manually every time a node is
selected.


Thanks for sharing the answers with us.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #5

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

Similar topics

0
by: Dan | last post by:
Hi, We are currently experiencing a pretty strange behavior with TreeView control that comes with IE webcontrols. Actually when used on OS other than XP, everything works fine but when it is use...
6
by: Brian Smith | last post by:
Is there a way to avoid the default action of TreeNode expansion/contraction caused by double click? I can add an event handler to pop up my properties dialog on double click, but it has the...
6
by: Jarod_24 | last post by:
This is the exception i'm getting: System.InvalidOperationException: The action being performed on this control is being called from the wrong thread. You must marshal to the correct thread using...
0
by: kvrdeveloper1 | last post by:
Hello all, I am populating my treeview with only 1 level of items. Upon opening my screen, I call the RefreshTreeview routine which populates the treeview just fine, and I am able to click on...
4
by: Dovla | last post by:
Hi, I have the following problem. I have a project that uses the Treeview control. The code supports drag-drop functionality for moving nodes between different levels and for changing their...
8
by: Matt MacDonald | last post by:
Hi All, I have a form that displays hierarchical categories in a treeview. Ok so far so good. What I was to do is have users be able to select a node in the treeview as part of filling out the...
0
by: Christof Nordiek | last post by:
Hi, Below is a simple program that demonstrates my poblem. i fill a treeview with nine nodes. Then the treeview is shown with a scrollbar. But I can't scroll to the last item. scrolling to the...
1
by: adstheman | last post by:
Hi all, I'm testing new versions of our suite of software products on different Windows platforms and found this strange problem the other day. When running the test release on a clean Windows...
5
by: Peter Duniho | last post by:
On Sat, 27 Sep 2008 12:02:04 -0700, <timor.super@gmail.comwrote: You don't, not when you don't know that one event is necessarily going to follow another. If the events can appear alone, then...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
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 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.