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
  1. Home
  2. General Programming
  3. C#
  4. Custom TreeView

Custom TreeView

Scheduled Pinned Locked Moved C#
helpquestion
6 Posts 3 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.
  • V Offline
    V Offline
    VengefulSakhmet
    wrote on last edited by
    #1

    I'm trying to create a custom treeview that will draw a blue rectangle over a selected node and then redraw the text over it. Is there any command that can help me find the (x,y) coordinates of the node? The node can be selected by either mouse, keyboard, or a button. Any suggestions?

    M 1 Reply Last reply
    0
    • V VengefulSakhmet

      I'm trying to create a custom treeview that will draw a blue rectangle over a selected node and then redraw the text over it. Is there any command that can help me find the (x,y) coordinates of the node? The node can be selected by either mouse, keyboard, or a button. Any suggestions?

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      How about using the Bounds property of the node? that good enough for what you want?

      Life goes very fast. Tomorrow, today is already yesterday.

      V S 2 Replies Last reply
      0
      • M musefan

        How about using the Bounds property of the node? that good enough for what you want?

        Life goes very fast. Tomorrow, today is already yesterday.

        V Offline
        V Offline
        VengefulSakhmet
        wrote on last edited by
        #3

        Yup, funny. I've been googling all morning and I just came upon bounds a minute before you answered. Thank you for the reply!

        M 1 Reply Last reply
        0
        • V VengefulSakhmet

          Yup, funny. I've been googling all morning and I just came upon bounds a minute before you answered. Thank you for the reply!

          M Offline
          M Offline
          musefan
          wrote on last edited by
          #4

          ;)

          Life goes very fast. Tomorrow, today is already yesterday.

          1 Reply Last reply
          0
          • M musefan

            How about using the Bounds property of the node? that good enough for what you want?

            Life goes very fast. Tomorrow, today is already yesterday.

            S Offline
            S Offline
            satigar123
            wrote on last edited by
            #5

            hi great

            M 1 Reply Last reply
            0
            • S satigar123

              hi great

              M Offline
              M Offline
              musefan
              wrote on last edited by
              #6

              Hi,

              satigar123 wrote:

              hi great

              But that's not exactly an answer is it

              Life goes very fast. Tomorrow, today is already yesterday.

              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