Click here to Skip to main content
15,910,661 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to draw a logic circuit diagram on a panel using AND,OR,NOT and wires?
Posted

1 solution

Create an AND, OR and NOT class as a user control.
Create an intelligent piece of wire as a user control, so that it can draw itself.
Create an intelligent panel that can tell the wire when an end is over a gate on the AND, OR or NOT, and bind them together as needed.

Lots of work - it won't be simple.

The best suggestions I can give you are:
1) Look at how you would do the same task with a pen and paper. work out what steps are involved.
2) Start small - create a node control and try to join two of them together so that a wire can draw itself between them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900