Snippets     
Search:

Go...

Language: All | C# | C++ | Java | Javascript | Objective C | PHP | Python | Rails | RegEx | Ruby | SQL | VB.NET | VBScript | XSL

Read and Write from a console window.
Read and Write from a console window.
Language: C# Category: Text

use BackgroundWorker to start asynchronus process.
Shows how to execute a process asynchronously using the BackgroundWorker object in C# 2.0 Example for starting BackgroundWorker Example for DoWork event Example for RunWorkerComplete event
Language: C# Category: Threading

Capture output from a console application.
Executes specified console app and captures its screen output to a string.
Language: C# Category: text

Activate application by it's process ID. Bring to foreground.
This finds the specified application by it's executable name. then brings it to the foreground using it's ID.
Language: C# Category: Windows

Activate an application by it's name. Bring to Foreground
Activate an Application by it's name. This brings the window to the foreground.
Language: C# Category: Windows

Alter the compression ratio of a JPEG
Alter the compression ratio of a JPEG
Language: C# Category: Image

Create an image and write back as a file
Create an image and write back as a file
Language: C# Category: Image

Return an image from an aspx page
Return an image from an aspx page.
Language: C# Category: Image

Use XslTransform to transform XML from a textbox
Code to take XML from one text box, transform it with XSL from another text box, then write the results to a third text box.
Language: C# Category: XSL

Regex whole word replace
Simple function to demonstrate use of Regex. Replaces "SomeText" with "-SomeText-" \b indicates whole word match $& indicates entire match substitution
Language: C# Category: Regex

Get Strongly Typed Data From A DataReader
Get Strongly Typed Data From A DataReader
Language: C# Category: ADO.NET

Insert a row into an Access database using OleDbConnection
Insert a row into an Access database using OleDbConnection
Language: C# Category: ADO.NET

Open & Read A Binary File
Open & Read A Binary File
Language: C# Category: File I/O

Add A Row To An XML File
Uses a DataSet to read an XML file, adds a row, and saves the file back out.
Language: C# Category: XML

Upload And Resize A Picture
Code to upload and resize a picture.
Language: C# Category: File I/O


  Copyright 2009 Isaac Roach iroach@gmail.com