Solved

Treeview LabelEdit

Posted on 2002-05-06
4
189 Views
Last Modified: 2010-05-02
Does anyone know how to intercept/monitor the editing of a treeview node?  For example, I want to be able to know what the text is at any given point during the editing, or what the selected text is.  I also want to be able to set a maxlength on the label text.  These are just a couple things I need to do.  I am not interested in doing input validation in the AfterEdit event!  It must be done while the editing is in progress.

Thanks for any help.
0
Comment
Question by:jaun
4 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 6991219
Listening & Learning

I guess that this might be possible using some API hooking the treeview edit, but I am not sure.
Another option would be that you place a textbox instead of letting the treeview handling the edit box...

CHeers
0
 
LVL 15

Accepted Solution

by:
ameba earned 100 total points
ID: 6991336
Use subclassing:
Get full control on the text typed in a TreeView's node
http://www.vb2themax.com/Item.asp?PageID=TipBank&ID=209

or use API (SendMessage / SetWindowLong):
Limit the length of the text in a TreeView node
http://www.vb2themax.com/Item.asp?PageID=TipBank&ID=208
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7722290
Hi jaun,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept ameba's comment(s) as an answer.

jaun, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7779875
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now