Skip to main content

Posts

Showing posts with the label C#

Microsoft virtual academy Learning C# note 3

1. uses Console.ReadLine() to read user input. 2. use simpler statement for if condition string message = (uservalue == "1") ? "boat" : "strand of lint"; //WriteLine() can use variable contains text to be print out {o} [appointing message variable] Console.WriteLine("you won = {0}", message); //WriteLine can also be written by passing two variables Console.WriteLine("you won= {0}", message, userValue);

Code : Draw line based on mouse click on image in picture box c#

today while finishing my image processing homework~ thank God. i manage to finish it BUT oNE part onlyyyyyyyyyyyyyy. huhuuhuuhuhuh still have lots more to do. anyway i want to share my code. with you all .. errrrmmm  **this program detect the coordinate of mouse click on image /picturebox **this program count the distance between two points. **this program draw line on mouse click points. you can download here :) https://www.sugarsync.com/share/emitoznaaydd3