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. Does exist this user control.

Does exist this user control.

Scheduled Pinned Locked Moved C#
designtutorialquestion
5 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.
  • F Offline
    F Offline
    Fired Fish Gmail
    wrote on last edited by
    #1

    To support such function: Can draw three column a, b, c with the images. User can use the scroll bar to control the column a,B Column a and b are opposite. Column c is static. User can draw 10 rows of column a,b to the column c. then the program can draw the lines from the row of colun A to the row of column B. Does anyonthe know the user control can do this? If I design this user control? how to achieve it? thks

    H 1 Reply Last reply
    0
    • F Fired Fish Gmail

      To support such function: Can draw three column a, b, c with the images. User can use the scroll bar to control the column a,B Column a and b are opposite. Column c is static. User can draw 10 rows of column a,b to the column c. then the program can draw the lines from the row of colun A to the row of column B. Does anyonthe know the user control can do this? If I design this user control? how to achieve it? thks

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      What?

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      F 1 Reply Last reply
      0
      • H Henry Minute

        What?

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        F Offline
        F Offline
        Fired Fish Gmail
        wrote on last edited by
        #3

        I need one user control that can support user draw. Column A Column B A1 B1 A2 B2 A3 B3 A4 B4 A5 B5 A6 A7 A8 A9 A10 1.When user can select 3 rows of Column A and draw to row B2 of column B, three line will be created from a1 -> b2, a2 -> b3, a3 -> b4. 2.There are 200 rows in Column A, A1 -> A200. User can uses scroll bar to control which rows of column a to show.

        H 1 Reply Last reply
        0
        • F Fired Fish Gmail

          I need one user control that can support user draw. Column A Column B A1 B1 A2 B2 A3 B3 A4 B4 A5 B5 A6 A7 A8 A9 A10 1.When user can select 3 rows of Column A and draw to row B2 of column B, three line will be created from a1 -> b2, a2 -> b3, a3 -> b4. 2.There are 200 rows in Column A, A1 -> A200. User can uses scroll bar to control which rows of column a to show.

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          AFAIK there is no control that does this, or at least I could not find one. What you are describing sounds rather like a graphical database designer or query designer works. If you google for c# database designer or c# diagram designer, you might well find something that you can get useful code from, or at least ideas. It seems to me that you will need to build your own control, and if so I would suggest that you use ListBoxes for ColumnA and ColumnB. You will need to research Drag and Drop, and for drawing the links I would suggest that you create a class that contains the starting listbox, the item (A1, A2 etc.) from that box and the same for the ending listbox. Then when a link is needed create a new instance of the class and add it to a list. when your control needs to paint itself, you just iterate over the list drawing a line from the start listbox to the end listbox.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          F 1 Reply Last reply
          0
          • H Henry Minute

            AFAIK there is no control that does this, or at least I could not find one. What you are describing sounds rather like a graphical database designer or query designer works. If you google for c# database designer or c# diagram designer, you might well find something that you can get useful code from, or at least ideas. It seems to me that you will need to build your own control, and if so I would suggest that you use ListBoxes for ColumnA and ColumnB. You will need to research Drag and Drop, and for drawing the links I would suggest that you create a class that contains the starting listbox, the item (A1, A2 etc.) from that box and the same for the ending listbox. Then when a link is needed create a new instance of the class and add it to a list. when your control needs to paint itself, you just iterate over the list drawing a line from the start listbox to the end listbox.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            F Offline
            F Offline
            Fired Fish Gmail
            wrote on last edited by
            #5

            thanks Henry, I will try it.

            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