Zebra0.com
C# Windows Forms Programming
Education Resources
Privacy
Contact
Topics
Algorithms
Alice 3
C++
C# Windows
RGB Colors
Computer Basics
Computer Concepts
Faculty resources
HTML5
Java
Systems Analysis and Design
Visual Basic
C# Windows Forms Programming
Learn C# (C sharp) in FREE step-by-step lessons.
Functions in C#
C# has a number of builtin functions. This lesson includes some of the most commonly used functions.
Please study the material at each of the links below.
Microsoft Reference
:
C# Math Functions
Math Functions
:
C# has a number of built-in functions and constants that you can use.
Demonstration of Math Functions
:
Shows how math functions might be used
/csharp/videos/csharp-math-functions.mp4
Drill on Math Functions Ceiling, Floor, and Round
:
Check your understanding of these functions
ToString function instead of + to concatenate
:
Compares using + and ToString()
/csharp/videos/csharp-tostring.mp4
Parse: Convert text to Double
:
A user does not always type a numeric value in text box,
parse to get numeric value
/csharp/videos/csharp-parse.mp4
TryParse: Convert text to Double if Numeric
:
TryParse to handle numeric error
/csharp/videos/csharp-tryparse.mp4
Ceiling: How many busses?
:
Real world problem to solve
Random Numbers
:
Code to declare and use a random number
Circle: Write a function to find area
:
A function receives the radius and returns the area
/csharp/videos/csharp-circle.mp4
A Function to Generate Random Colors
:
A function to return a random color using Color.FromArgb(red, green, blue);
/csharp/videos/csharp-randomcolor.mp4
BMI: A Void Function to calculate Body Mass Index
:
A void function does not return a value
/csharp/videos/csharp-BMI.mp4
Glossary for functions lesson
Full Glossary