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 4 1867
Well ugh, post us some code! I'm using a treeview fine with my app.
"solex" <so***@nowhere. com> wrote in message
news:%2******** ********@TK2MSF TNGP11.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
* "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>
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 SelectedImageIn dex 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>
* "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 SelectedImageIn dex 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> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 on XP, the line that
links a child node to his parent is not drawing and after that
happens, the whole web application seems to be "freezed".
Also, this problem does not happen on all XP machine. So there must be
a fix or something that...
|
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 unintended side-effect of toggling
the expansion of that subtree.
Thanks in advance,
Brian
|
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 Control.Invoke or Control.BeginInvoke to perform this action.
I have multiple background-threads that returns info about their progress through a Event. This event's handler is then on a Form
that has the responsability to display all the info...
|
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 nodes in the treeview and populate the
appropriate data accordingly. However, once I add a new record via this
screen and call the same RefreshTreeview routine (which successfully
populates the treeview with the appropriate items including the new...
|
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 order within a level. On Windows 2000
Server everything works fine. When I put it on the 2003 Server, everything
worked exactly the same except for changing the order of nodes within a level.
If this were an error in code, I'd expect it to not work...
| |
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 form. I only want to allow single
selection, so using checkboxes is out of the question. It works as is, but
it makes the form very cumbersome if every time that a user selects a node,
the whole page has to reload. Is there a way to have a node...
|
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 bottom
the last item remains almost nvisable.
What is the matter?
using System;
using System.Collections.Generic;
|
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 XP platform, the program adds nodes to a treeview control which represent records stored in an Access database. When a new document is created using the program (and subsequently this creates a record in the database), it adds the node to the...
|
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 you can't make them
depend on each other.
You don't describe what this "thing" you are doing is. But it's bad
design to have some "thing" you do in response to user input like this be
something that can't be done repeatedly. For example, any...
|
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,...
|
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...
| |
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: 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: 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();...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |