Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi i want to write a paint program just using win api in c#,and i'm beginner in win api.
can you please write me a simple code yo show how to (for example drawing a circle on screen)to understand how to do it?
Posted
Comments
Sergey Alexandrovich Kryukov 1-Jul-12 3:52am    
Why with Windows API, not pure .NET?
--SA
Sandeep Mewara 1-Jul-12 4:22am    
Comment from OP:
what is wrong with you?
Reza Oruji 1-Jul-12 3:55am    
what is wrong with you?
Sergey Alexandrovich Kryukov 2-Jul-12 4:04am    
Not clear who are you talking to, as formally, you comment your own question. Pretty interesting question, but I would be grateful for your explanation of what it is supposed to mean?
And, you did not answer the question: why would you like to solve the problem with Windows API, of you work with feature-rich .NET? Using P/Invoke is always bad, as it makes your code non platform-portable...
--SA

1 solution

You can find lots of sample code in the articles section[^] here on CodeProject, and the full details of the API here on MSDN[^].
 
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