prem_rajani
Member
Hi all,
I would like to know how to add lines at runtime between two controls. Let me explain it to you exactly what this project does.
The form has two panels - left & right panel. During design time itself I add listbox in the right panel. Next step is I drag the item from listbox and drop it in left panel. After mouse is released based on item a user control is created consisting of groupbox & checkedlistbox. So in this way many usercontrols are created in left panel. Now on one of the checkedlistbox mouse down event starting points are marked and on other checkedlistbox mouseup or dragdrop event end point is marked. I'm able to get the lines but not exactly. The problem I'm facing is that how can I retrieve the lines if form loses its focus or it is minimized. Other problem is that if I scroll down through the checkedlistbox the line doesnt move. How do I fix the line with the selecteditem of checkedlistbox. If any one have idea or solution pls do let me know.
Thanking you.
Prem
I would like to know how to add lines at runtime between two controls. Let me explain it to you exactly what this project does.
The form has two panels - left & right panel. During design time itself I add listbox in the right panel. Next step is I drag the item from listbox and drop it in left panel. After mouse is released based on item a user control is created consisting of groupbox & checkedlistbox. So in this way many usercontrols are created in left panel. Now on one of the checkedlistbox mouse down event starting points are marked and on other checkedlistbox mouseup or dragdrop event end point is marked. I'm able to get the lines but not exactly. The problem I'm facing is that how can I retrieve the lines if form loses its focus or it is minimized. Other problem is that if I scroll down through the checkedlistbox the line doesnt move. How do I fix the line with the selecteditem of checkedlistbox. If any one have idea or solution pls do let me know.
Thanking you.
Prem