Geekpedia Programming Tutorials









Code C# Code

1 2 3 4 5
(30 code snippets in 6 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

-----
No votes

May 2nd 2008
by Andrew Pociu

Resize Image With Aspect Ratio

A C# method that resizes pictures and maintains their aspect ratio, optionally only if a maximum width is exceeded. The method works with both images that have a higher height than width and viceversa.

Code

-----
No votes

May 2nd 2008
by Andrew Pociu

Execute A File Or Application

Get your .NET application to open a file using the operating system's file type assignments, just like the file would open when double clicked.

Code

-----
No votes

Apr 24th 2008
by Andrew Pociu

List All Running Processes

Get a list of all running Windows processes through which you can step using a foreach loop.

Code

-----
No votes

Apr 24th 2008
by Andrew Pociu

Beep In The PC Speaker

Generate a beep in the PC speaker using C# and an unmanaged call to the Beep() function that is part of the Windows kernel.

Code

-----
No votes

Apr 23rd 2008
by Andrew Pociu

Get And Set The System Date And Time

C# code snippet that uses unmanaged code to retrieve the current date and time of the Windows operating system, and also sets it to the specified values.

1 2 3 4 5
(30 code snippets in 6 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 Downloads

Latest Icons