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. Visual Basic
  4. User Control Problem

User Control Problem

Scheduled Pinned Locked Moved Visual Basic
2 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.
  • T Offline
    T Offline
    TCHamilton
    wrote on last edited by
    #1

    I have hierarchical data that the user can make one of four choices about. The primary treeview manages @900 rows of data that collapsed to @100 groups. I need to draw a tree view with a 'radio button group' where the radio buttons are related to the treeview node index. I have made a User Control for the 4 radio button but can't quite figure out: 1) How to Position the radiobuttons to align with the tree view node 2) Linkage to connect the button data to the treeview node i.e. [a,b,c,d] tvNode1 [a,b,c,d] tvNode2 Each control is located on separate panels, panel 1 is for the radio buttons, panel 2 is for the Treeview. - Is there may be a better way??? TIA

    Tom Hamilton Sacramento, CA

    S 1 Reply Last reply
    0
    • T TCHamilton

      I have hierarchical data that the user can make one of four choices about. The primary treeview manages @900 rows of data that collapsed to @100 groups. I need to draw a tree view with a 'radio button group' where the radio buttons are related to the treeview node index. I have made a User Control for the 4 radio button but can't quite figure out: 1) How to Position the radiobuttons to align with the tree view node 2) Linkage to connect the button data to the treeview node i.e. [a,b,c,d] tvNode1 [a,b,c,d] tvNode2 Each control is located on separate panels, panel 1 is for the radio buttons, panel 2 is for the Treeview. - Is there may be a better way??? TIA

      Tom Hamilton Sacramento, CA

      S Offline
      S Offline
      Star Vega
      wrote on last edited by
      #2

      I would start from an existing treeview control and set the the DrawMode-property to OwnerDrawAll, so you you don't have to bother about the complexicity of the positions. In this mode you can draw your buttons instead of the existing signs in the treeview. Does this help your problem?

      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