Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How to create IE Favorites like TreeView?

How to create IE Favorites like TreeView?

Scheduled Pinned Locked Moved .NET (Core and Framework)
questiontutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lclarsen
    wrote on last edited by
    #1

    Hi, I need a TreeView control with the ability to rearrange nodes and with the insert indicator (the horizontal bar) that you get in "Favorites" in IE when you add or drag-drop a link. I'm pretty sure how to do the rearranging bit, but how do I get the insert indicator when an item is dragged around in the treeview? Do I have to draw it myself? And if so, how can I do that? Thanks!

    T 1 Reply Last reply
    0
    • L lclarsen

      Hi, I need a TreeView control with the ability to rearrange nodes and with the insert indicator (the horizontal bar) that you get in "Favorites" in IE when you add or drag-drop a link. I'm pretty sure how to do the rearranging bit, but how do I get the insert indicator when an item is dragged around in the treeview? Do I have to draw it myself? And if so, how can I do that? Thanks!

      T Offline
      T Offline
      TJoe
      wrote on last edited by
      #2

      You have to do it yourself. The TreeView has events for drag and drop operations but it won't draw anything for you. Check this[^] out for an example. It uses icons, but you could modify it to draw a line like IE.

      Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

      L 1 Reply Last reply
      0
      • T TJoe

        You have to do it yourself. The TreeView has events for drag and drop operations but it won't draw anything for you. Check this[^] out for an example. It uses icons, but you could modify it to draw a line like IE.

        Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

        L Offline
        L Offline
        lclarsen
        wrote on last edited by
        #3

        Hi Tom, Finally an answer :-) Thanks! there are a lot of helpful stuff in that article! I also need to drag a semi-transparent icon as the article explains, so that's really cool. By now I'm actually drawing the line myself as you also suggest. I think I need to work on it a little bit, though :-) Thanks again.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups