Using TreeView

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,
I am trying to create a form to show the company's organogram in a treeview
object.

Using some examples found in earlier messages, I manage to create the
structure in the object but, what I really need is to be able to verify when
the user select a specific position. There in no OnClick, OnAfterUpdate or
anything I could use for this. All events I can see are: OnUpdated, OnEnter,
OnExit, OnGotFocus, OnLostFocus, and none of them is activated when I select
something.

Can somebody help me?
Using:
Windows 2000
Access 2000 SP-3
Microsoft TreeView Control 6.0 (SP4)

Thanks very much for any help

Mauricio Silva
 
you should get more events than that
Look for this one.

Private Sub TreeView0_NodeClick(ByVal Node As Object)

End Sub
 
Hi,
You won't see all the events on the property sheet.
You have to go into the VB editor, select the Treeview control fron the
upper left combo, then select the appropriate event from the upper right combo.
 
I know I should, but in fact I don't. Those are the only event I have got.
May be I can reach the NodeClick event inside this ActiveX control (Class:
MSComctlLib.TreeCtrl.2 ) but I am not familiar with ActiveX. How could I do
it ?

Important: I am not allowed to download or install any other object in my
environment.

Thanks
Mauricio Silva
 
Back
Top