Click here to Skip to main content
15,902,114 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how do i draw line from one to another while dragging mouse from one point to another in window form using c#
Posted
Updated 25-Feb-15 17:04pm
v3
Comments
Sergey Alexandrovich Kryukov 25-Feb-15 22:57pm    
What do you mean "how"? By doing appropriate software development work. Any particular concerns?
Main question here is: in what UI library (WPF, Forms, Silverlight, ASP.NET, what?)?
—SA
macika123 25-Feb-15 22:59pm    
What platform are you working on? WPF, Win32, Windows Phone?
You might check class InkPresenter: https://msdn.microsoft.com/en-us/library/windows/apps/system.windows.controls.inkpresenter%28v=vs.105%29.aspx
or you can play with MouseDown, MouseMove and MouseUp events.
What do you want to achieve? Hand-writing or something like the line tool in drawing applications. Also it would be a better start, if you inserted your source code.
BillWoodruff 26-Feb-15 2:29am    
More details, please. You want to draw what on a what ? And you want what is drawn to represent what ?

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