Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4075554
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:18:47+00:00 2026-05-20T17:18:47+00:00

I am working on a program which I want to draw diode curves in

  • 0

I am working on a program which I want to draw diode curves in a WinForms application. I have a list of diode names and I have theire points as you can see at the right side of the picture. That is Voltage as X and Current as Y ( A curve contains like 50 points).

What I want to do is by selecting one or more diodes from the list theire curve show up on my plot. What you see is just a picture box at the moment filled with a bmp. I know that this is not a reliable solution, so I am asking you what can be the best approach to do such thing? I dont know any good component which can make me do this. So I just need to know what can be the best approuch for this task?

A quick view of what I want

A diode curve is something like:

Diode curve

I might have up to 100 of diode curves in my program which all of them (single or multiple) should be drawn by clicking on them in the list.

So what you think?

UPDATE

ALSO important thing is by deselecting a pin in the curve, its curve should be removed from the plot!

I am drawing that axis you see using the code below:

    Bitmap xyCords = new Bitmap(500, 500);
Graphics g = Graphics.FromImage(xyCords);
g.DrawLine(penAxis, 250, 0, 250, 500);
g.DrawLine(penAxis, 0, 250, 500, 250);
curveBox.Image = xyCords;

how is it possible later if I made a new Graphics I append it like:

curveBox.Image += newGraphic;

** Please let me know if there is any component or something which already can do what I want. or else show me a good approach! Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T17:18:47+00:00Added an answer on May 20, 2026 at 5:18 pm

    Try using Graphics.DrawCurve. You just put all of the points you want in an array, and pass that and a pen to the method.

    Edit:
    Add this after your code to prove to yourself that both graphs coexist. To erase one or the other, just plot the same points, but in the background color of the bitmap (test for it, I don’t remember what it is).

    Point[] ptarray = new Point[3];
    ptarray[0] = new Point(250, 250);
    ptarray[1] = new Point(300, 300);
    ptarray[2] = new Point(350, 400);
    
    Pen pengraph = new Pen(Color.Green, 0.75F);
    g.DrawCurve(pengraph, ptarray);
    
    Point[] ptarray2 = new Point[3];
    ptarray2[0] = new Point(100, 100);
    ptarray2[1] = new Point(200, 150);
    ptarray2[2] = new Point(250, 250);
    
    Pen pengraph2 = new Pen(Color.Yellow, 1.25F);
    g.DrawCurve(pengraph2, ptarray2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very old, very very large, fully working, C program which plays
I am working on a program which manipulates images of different sizes. Many of
I am working on a simple CAD program which uses OpenGL to handle on-screen
I am working on a Windows utility program which communicates with some custom hardware
Background I am working on a phonetic converter program which converts english text into
I'm working on a Java 2D rendering program (running on 1.6.0_11), which uses external
What profilers have you used when working with .net programs, and which would you
I'm working on a large program which has an abstracted GUI API. It is
Say I have a command line C program which is currently executing, and I
I want to start working with databases using the .NET framework. From where can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.