Graphical C# Thread Example
This is simple multi-threading program thatdraws circles and rectangles. Each shape is handle by individual threadthat created every time you press start button. Using sleep method oneach thread we can change the speed of each shape.
I have used VS.NET to implement this program.Double click on Thread_Example.Zip and extract all the files and folders to a folder in C drive.
Run the project using VS.NET:
Double click on ThreadTester.sln (Prject file). Then run the project (press F5). The Form1 will appear as shown below.
Run using command-line prompt.
Copy all the .cs files (From1.cs, Rectangle.cs, Circle.cs and Shapes.cs) in to a folder in C drive and comple it using
C:\FolderName> csc *.cs
This will create a Form1.exe file inside the folder. Then double click it run it.
Class Heirarchy


Download Thread_Example.zip
About Author: I have completed a Bachelor ofScience Degree in Computer Science. I have been programming skills withVisual Basic, Java and ASP.NET.




02. Dec, 2006 by 







No comments yet... Be the first to leave a reply!