Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Which Control is Best To Draw Graphs?

Which Control is Best To Draw Graphs?

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • . Offline
    . Offline
    ...---...
    wrote on last edited by
    #1

    Hi, I want to draw my own graphs in a WinForm, but I don't want to draw directly on the Form. Which control is best to draw inside of? Picture Box? Panel? etc... thanks for help...

    C J Y 3 Replies Last reply
    0
    • . ...---...

      Hi, I want to draw my own graphs in a WinForm, but I don't want to draw directly on the Form. Which control is best to draw inside of? Picture Box? Panel? etc... thanks for help...

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Your best bet is to write your own control which draws it directly. A picture box is only good if you write the code to generate a bitmap with your graph, and use a picture box to display it.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      1 Reply Last reply
      0
      • . ...---...

        Hi, I want to draw my own graphs in a WinForm, but I don't want to draw directly on the Form. Which control is best to draw inside of? Picture Box? Panel? etc... thanks for help...

        J Offline
        J Offline
        Judah Gabriel Himango
        wrote on last edited by
        #3

        Typically if you need a blank control to draw on, inherit one from System.Windows.Forms.Control, or draw on a panel.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: And in this corner, the Party of Allah The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        1 Reply Last reply
        0
        • . ...---...

          Hi, I want to draw my own graphs in a WinForm, but I don't want to draw directly on the Form. Which control is best to draw inside of? Picture Box? Panel? etc... thanks for help...

          Y Offline
          Y Offline
          yueue
          wrote on last edited by
          #4

          Picture Box

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups