Does exist this user control.
-
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
-
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
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.”
-
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.”
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.
-
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.
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
ListBox
es 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.”
-
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
ListBox
es 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.”
thanks Henry, I will try it.