Solved

Treeview LabelEdit

Posted on 2002-05-06
4
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 143

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

732 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