Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
AnswerRe: Acess control system for company entrance Pin
PIEBALDconsult3-May-09 5:43
mvePIEBALDconsult3-May-09 5:43 
AnswerRe: Acess control system for company entrance Pin
Dave Kreskowiak3-May-09 6:39
mveDave Kreskowiak3-May-09 6:39 
QuestionPrinter on distributed system Pin
Snappy Wing3-May-09 4:39
Snappy Wing3-May-09 4:39 
AnswerRe: Printer on distributed system Pin
Dave Kreskowiak3-May-09 6:40
mveDave Kreskowiak3-May-09 6:40 
Question2d drawing (visualstudio2005) [modified] Pin
lor3n7o3-May-09 2:11
lor3n7o3-May-09 2:11 
AnswerRe: 2d drawing (visualstudio2005) Pin
Henry Minute3-May-09 2:21
Henry Minute3-May-09 2:21 
GeneralRe: 2d drawing (visualstudio2005) Pin
lor3n7o3-May-09 3:44
lor3n7o3-May-09 3:44 
GeneralRe: 2d drawing (visualstudio2005) Pin
Henry Minute3-May-09 4:00
Henry Minute3-May-09 4:00 
lor3n7o wrote:
I want something where the GUI alone remember all that has already designed and I would add only the new figure by the code . This way I can read from the file one figure at the time and add it to the plan to put all figures.
Thank you...


What you need for this is a collection of some sort to hold details of what has been drawn, as a field of your Form. This collection can be serialized, or otherwise saved to a file when the application closes, ready for loading the next time it starts.

However you decide to implement that, the simplest way to ensure that your 'drawings' are displayed is to iterate over the collection drawing each item in the Paint event of the panel. The point is that each control in a Widows Forms application has its own Graphics object this object has methods for painting stuff on its surface.

There are plenty of examples of how to do all of these things. Just Google for drawing program c# or painting program c# and you will get lots of useful examples to study.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: 2d drawing (visualstudio2005) Pin
lor3n7o3-May-09 4:15
lor3n7o3-May-09 4:15 
GeneralRe: 2d drawing (visualstudio2005) Pin
Henry Minute3-May-09 4:24
Henry Minute3-May-09 4:24 
GeneralRe: 2d drawing (visualstudio2005) Pin
lor3n7o3-May-09 4:34
lor3n7o3-May-09 4:34 
QuestionError related access-" Record(s) cannot be read; no read permission on 'MSysObjects '" Pin
KIDYA3-May-09 2:08
KIDYA3-May-09 2:08 
AnswerRe: Error related access-" Record(s) cannot be read; no read permission on 'MSysObjects '" Pin
MumbleB3-May-09 2:54
MumbleB3-May-09 2:54 
QuestionAre "Master pages" ASP.NET's answer to Template Engine for .NET 2.0? Pin
Member 3653373-May-09 2:00
Member 3653373-May-09 2:00 
AnswerRe: Are "Master pages" ASP.NET's answer to Template Engine for .NET 2.0? Pin
saanj3-May-09 21:21
saanj3-May-09 21:21 
QuestionGenerics return type cannot cast. Pin
NT9863-May-09 0:40
NT9863-May-09 0:40 
AnswerRe: Generics return type cannot cast. [modified] Pin
Thomas Weller3-May-09 5:27
Thomas Weller3-May-09 5:27 
AnswerRe: Generics return type cannot cast. Pin
PIEBALDconsult3-May-09 5:31
mvePIEBALDconsult3-May-09 5:31 
Questionhelp Pin
hotthoughtguy2-May-09 23:09
hotthoughtguy2-May-09 23:09 
AnswerRe: help Pin
Eddy Vluggen2-May-09 23:49
professionalEddy Vluggen2-May-09 23:49 
GeneralRe: help Pin
hotthoughtguy3-May-09 1:07
hotthoughtguy3-May-09 1:07 
GeneralRe: help Pin
Eddy Vluggen3-May-09 1:51
professionalEddy Vluggen3-May-09 1:51 
GeneralRe: help Pin
Dave Kreskowiak3-May-09 4:19
mveDave Kreskowiak3-May-09 4:19 
QuestionI want to control some hardware by internet Pin
rashed.info2-May-09 21:35
rashed.info2-May-09 21:35 
AnswerRe: I want to control some hardware by internet Pin
Mycroft Holmes2-May-09 23:45
professionalMycroft Holmes2-May-09 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.