1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Making a drawing of graph on the windows form using c#

Discussion in 'C#' started by designpack, Jun 5, 2013.

  1. #1
    Hello

    I have a windows application and two values of priduction i want to make graph of this value on the windows form can anyone tell me how can I make a graph on the windows form?
    SEMrush
    I am using c# windows application
     
    designpack, Jun 5, 2013 IP
    SEMrush
  2. acidwater

    acidwater Banned

    Messages:
    29
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    18
    #2
    You can use System.Graphics namespace for creating graphics on windows form and then you can use following code for it

    System.Drawing.SolidBrush myBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Red);
    System.Drawing.Graphics formGraphics;
    formGraphics = this.CreateGraphics();
    formGraphics.FillRectangle(myBrush, new Rectangle(0, 0, 200, 300));
    myBrush.Dispose();
    formGraphics.Dispose();
     
    acidwater, Jun 5, 2013 IP
    EchoTek and designpack like this.