TreeView NodeClick event

M

MyndPhlyp

I am having a bit of difficulty writing a NodeClick event handler for a
Microsoft TreeView Control (v6.0) object . According to my documentation the
Sub should be defined as:

Private Sub object_NodeClick(ByVal node As Node)

When it comes time to compile I get the error:

Procedure declaration does not match description of event or procedure
having the same name.

I know I'm using the correct string for "object" in the above Sub. Just for
grins I slapped together a quick Click event using the same string and it
fired just fine.

I've tried removing the ByVal and even tried removing all the parameter
information but still get the same error. MSDN only confirms what
documentation I already have.

So what is the trick to getting this declared correctly so it will compile
in Access 2000?
 
A

Alex Dybenko

Hi,
remove procedure declaration you typed, then in left top combo select
treeview control, in right top combo select NodeClick and access will insert
a correct proc declaration
 
M

MyndPhlyp

Learn something new every day. Thanx. BTW - the parameter definition wanted
to be Object rather than Node.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top