Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    387
    Thanks
    0
    Thanked 1 Time in 1 Post

    Treeview error (XP)

    I am getting the following Compile error - "Procedure declaration does not match description of event or procedure having the same name."
    Then "The expression MouseMove you entered as the event property setting produced the following error: "Procedure declaration does not match description of event or procedure having the same name"

    This is the declaration line -
    Private Sub TreeView1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)

    I can't see what's wrong, any ideas?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Treeview error (XP)

    Try

    Private Sub TreeView1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Long, ByVal y As Long)

    Differences: all arguments are declared by value, and x and y are Long instead of Single.

  3. #3
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    387
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Treeview error (XP)

    Yep - that did it - your blood's worth bottling.
    thanks heaps Hans

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •