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 drag Icon (2002)

    I am trying to use the drag icon but I can't figure out how to get it started I thought it might be someting like -

    Private Sub TreeView1_OLEStartDrag(Data As Object, AllowedEffects As Long)
    nodSelected.CreateDragImage "Doc"
    End Sub
    Anyone got a solution or some sample code?

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

    Re: Treeview drag Icon (2002)

    Probably something like

    TreeView1.DragIcon = nodSelected.CreateDragImage

    See CreateDragImage Method Example.

  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 drag Icon (2002)

    As with a lot of treeview code, the VB code is quite different to the VBA so this line doesn't work, I'm sure the syntax will be obvious once I get it.

    "Everything is logical, given hindsight"

    Thanks 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
  •