473,851 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

custom drawing tree view control

Hi,

Iam trying to create a custom tree view control in thich i needto display images for some of the nodes. The images need on theright side of the nodes. Is there any way to do this besideshandling the windows notification messages? even if possibleonly thro windows messages, can some one guide me to some csharp code implementing something similar.

yours,

K.Angapparaj

--------------------------------
From: Angapparaj K

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>5WDd/594c0OA3imV+Aww Kw==</Id>
Nov 17 '05 #1
3 19466
It's VB.NET Code, but this article of mine shows you how to owner-draw a
treeview in .NET:

Custom Draw TreeView in VB.NET
http://www.codeproject.com/vb/net/Cu...awTreeview.asp

Also this one can be useful:

CustDTv sample illustrates custom draw in a Tree-View control
http://support.microsoft.com/default...;EN-US;q248496

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Angapparaj K via .NET 247" <an*******@dotn et247.com> escribió en el mensaje
news:uH******** ******@TK2MSFTN GP15.phx.gbl...
Hi,

Iam trying to create a custom tree view control in thich i need to display
images for some of the nodes. The images need on the right side of the
nodes. Is there any way to do this besides handling the windows notification
messages? even if possible only thro windows messages, can some one guide me
to some c sharp code implementing something similar.

yours,

K.Angapparaj
Nov 17 '05 #2
If you are open to using an existing TreeView control
that supports images on Right side of nodes
then take a look at TList .NET
www.Bennet-Tec.com/btproducts/TList/TList.htm

* * Please include a copy of this message with your reply

Jeff Bennett
Jeff @ Bennet-Tec.Com

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com

=============== ==== =============== ====

Angapparaj K via .NET 247 wrote:
Hi,

Iam trying to create a custom tree view control in thich i need to display images for some of the nodes. The images need on the right side of the nodes. Is there any way to do this besides handling the windows notification messages? even if possible only thro windows messages, can some one guide me to some c sharp code implementing something similar.

yours,

K.Angapparaj

--------------------------------
From: Angapparaj K

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>5WDd/594c0OA3imV+Aww Kw==</Id>


Nov 17 '05 #3
If you are open to using an existing TreeView control
that supports images on Right side of nodes
then take a look at TList .NET
www.Bennet-Tec.com/btproducts/TList/TList.htm

* * Please include a copy of this message with your reply

Jeff Bennett
Jeff @ Bennet-Tec.Com

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com

=============== ==== =============== ====

Angapparaj K via .NET 247 wrote:
Hi,

Iam trying to create a custom tree view control in thich i need to display images for some of the nodes. The images need on the right side of the nodes. Is there any way to do this besides handling the windows notification messages? even if possible only thro windows messages, can some one guide me to some c sharp code implementing something similar.

yours,

K.Angapparaj

--------------------------------
From: Angapparaj K

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>5WDd/594c0OA3imV+Aww Kw==</Id>


Nov 17 '05 #4

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

Similar topics

3
1677
by: Bill Merrill | last post by:
I'm having a problem with a custom-painted panel. Upon resize, it's invalidated, and redrawn properly. It's also double-buffered so there's no flicker. When I resize the control during runtime, it paints fine. However, when the control is docked, and it's parent is expanded, the child isn't properly redrawn. It's being invalidated and OnPaint is properly called, but sometimes the repaint doesn't actually take effect. If you...
3
7232
by: Arnold the Aardvark | last post by:
I am creating a custom draw tree view based on CTreeCtrl. When the control is re-sized the background is blanked completely, resulting in a horrible flicker. I've seen various suggestions involving the use of double buffering. Those are fine but I want to understand what is wrong. When I created the same control in C++Builder the view was totally flicker free, so this must be something the framework does (or doesn't).
1
2006
by: Martin Robins | last post by:
I have developed a custom control that, among others, includes a property that is a collection of "Items". If I place an instance of my control onto a CF form, I can view all of the properties correctly in the property grid and my collection appears with the ellipses ready to open the collection editor. Click on the ellipses and the editor opens correctly and I can add and remove items in the collection. Unfortunately, the incorrect code...
0
1395
by: medikurti | last post by:
Hi All, I have to develop custom web control i.e. Tree View Control. I don’t have idea about custom web controls. This is i need in Web Control not Windows Control. My Requirements are: 1) Checkbox, Radio Button: within tree view, one level of node can show checkbox, second level can show radio button. 2) We can drag & drop the elements of the Tree View control on to the predefined control like Text Box and as well as...
0
1205
by: medikurti | last post by:
Hi All, I have to develop custom web control i.e. Tree View Control. I don’t have idea about custom web controls. This is i need in Web Control not Windows Control. My Requirements are: 1) Checkbox, Radio Button: within tree view, one level of node can show checkbox, second level can show radio button. 2) We can drag & drop the elements of the Tree View control on to the predefined control like Text Box and as well as Tree View it...
0
941
by: medikurti | last post by:
Hi All, I have to develop custom web control i.e. Tree View Control. I don’t have idea about custom web controls. This is i need in Web Control not Windows Control. I am getting Third party controls. But i want source code. My Requirements are: 1) Checkbox, Radio Button: within tree view, one level of node can show checkbox, second level can show radio button. 2) We can drag & drop the elements of the Tree View control on to the...
0
1000
by: medikurti | last post by:
Hi All, I have to develop custom web control i.e. Tree View Control. This is i need in Web Control not Windows Control. If possible can u give some links on Web. My Requirement is: We can drag & drop the elements of the Tree View control on to the predefined control like Text Box and as well as Tree View it self I would be thankful if anyone helps on this. I have got information on windows form. I am not able to find in Web Form. I...
2
1274
by: medikurti | last post by:
Hi All, I have to develop custom web control i.e. Tree View Control. This is i need in Web Control not Windows Control. If possible can u give some links on Web. My Requirement is: We can drag & drop the elements of the Tree View control on to the predefined control like Text Box and as well as Tree View it self I would be thankful if anyone helps on this. I have got information on windows form. I am not able to find in Web Form. I...
5
4141
by: gerry | last post by:
I am trying to create a custom container control that will only ever contain a specific type of control. At design time, when a control of a different type is added to the container I would like to wrap the control in the proper control type - which is also a container. At design time I want to be able to turn this : <my:container> <asp:textbox />
0
9897
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9747
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
11019
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...
1
10728
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,...
1
7906
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
7073
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
5933
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4549
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
4143
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.