title: How to create and connect custom user buttons/controls with lines using windows forms
body: <p>I am trying to create some custom buttons or user controls as shown in the proposed GUI. The functionality should be as follows: </p>
  
  <p>The graphs or configurations are created graphically.</p>
  
  <p>The controls can be dragged from a toolbar or inserted by right mouse click/dropdown</p>
  
  <p>By dragging from one control to another, they should be connected by lines</p>
  
  <p>A toggle should shift the view from controls with options to a simple view</p>
  
  <p>GUI view - controls with options:
  <img src="https://i.stack.imgur.com/e6nUL.jpg" alt="GUI view controls with options"></p>
  
  <p>GUI view - minimized:
  <img src="https://i.stack.imgur.com/XVKRB.jpg" alt="enter image description here"></p>
  
  <p>Which functionality in Windows forms can I use to create the connecting lines ?</p>
  
  <p>If they are created by using functionality to draw lines, how can I make sure the controls snap to the line? .. </p>
  
  <p>I am programming in C# with Visual Studio 2010 Express.</p>