Skip to content
Loading
  • Jignesh Kumar
    +1
    Hi,
    Please use this link which will guide you,
    http://csharpdevelopertool.blogspot.com/2012/02/draw-triangle-on-form-using-cnet.html 
    https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/how-to-draw-an-outlined-shape 
    +1
  • Amit Gupta
    +1
    You can use Graphics class to draw a triangle.
    +1
  • Rajanikant Hawaldar
    +1
    https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2008/sfwzeec0(v=vs.90)?redirectedfrom=MSDN
    +1
  • +1
    I don't know how write it without:
     
    System.Drawing.Rectangle rectangle = new System.Drawing.Rectangle( 50, 50, 150, 150);
     
    how i write it with use textboxes..? 
    +1
  • +1
    If you want to draw shapes and figures, you can try the Leadtools annotations SDK (https://www.leadtools.com/sdk/annotation). I've used them before and they have a lot of options for customizing how they are rendered and behave. It supports WinForms, but also JavaScript like on their live demo (https://demo.leadtools.com/JavaScript/Annotations/)

     

    Here's a tutorial they have for WinForms:
    https://www.leadtools.com/help/sdk/v21/tutorials/dotnet-winforms-draw-and-edit-annotations-on-images.html

    +1