Geekpedia Programming Tutorials






Code C# Code

1 2 3 4 5 6 7 8
(39 code snippets in 8 pages)
Latest Code: RSS Feed RSS Feed     KlipFolio Klip Klip     Add to Google    Add to My Yahoo!    Subscribe in NewsGator Online    Add To Windows Live    Subscribe with Bloglines   
Code

*****
5 from 2 votes

Apr 17th 2008
by Andrew Pociu

Draw Rounded Corner Rectangles Using C#

Use the GDI library objects to draw rectangles that have rounded rectangles of a specified radius. The secret is to use a series of lines and arcs to form the rectangle as desired.

Code

**---
2 from 1 votes

Apr 17th 2008
by Andrew Pociu

Play MP3 Files Using C#

This code uses the Windows Multimedia API winmm.dll library to play MP3 files. Put it into a class and call the Open() method with a parameter specifying the MP3 file that you wish to play.

Code

****-
4 from 1 votes

Apr 16th 2008
by Andrew Pociu

Set Image Opacity Using C#

A C# function for changing the opacity on an image to the specified value. It uses the System.Drawing, System.Drawing.Imaging and System.Drawing.Drawing2D namespaces.

Code

*****
5 from 1 votes

Mar 19th 2008
by Andrew Pociu

Get Unix Time using C#

While interfacing with Unix applications, your C# application might need to use Unix time instead of the standard date/time format. Since the Unix time format is basically a count of the seconds passed since 1/1/1970, this can be easily done using the DateTime object.

Code

*****
5 from 1 votes

Mar 16th 2008
by Andrew Pociu

Check if string is numeric

This is a one-line C# method that checks whether a string is a numerical value or not, by having regex (regular expressions) match a decimal with or without a floating point.

1 2 3 4 5 6 7 8
(39 code snippets in 8 pages)
Filter Results
Show:


Latest IT Jobs


Other Resources
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons