Tuesday, March 23, 2010
northwest_thumb.jpg NW-MTUG’s next session is on Monday 29th March on ASP.Net Dynamic User Controls presented by Niall Merrigan check out NW-MTUG’s site for all details.
posted on Tuesday, March 23, 2010 11:01:57 PM (GMT Standard Time, UTC+00:00)  #    Add Comment | Comments [0]
 Saturday, March 13, 2010

One of the things I like in OS X is the ability to highlight a piece of text in any application and search for it using Google. Using Automator it's very easy to create a new Services and add similar functionality of our own. I have created a service that will allow you to search using Bing. Simply download my service and extract the contents of the zip file to your ~/Library/Services folder.

The screenshot shows an example of using my "Search with Bin" service. All you have to do is highlight macServicesthe text you wish to search for and then select "Search with Bing". The search results will then open in your default web browser.  

posted on Saturday, March 13, 2010 1:34:47 PM (GMT Standard Time, UTC+00:00)  #    Add Comment | Comments [0]
 Monday, March 08, 2010
Installed MacJournal and just writing my first blog post to check it out. So far seems ok for blogging I miss LiveWriter while working on my MacBook and this seems like the best substitute so far.
posted on Monday, March 08, 2010 10:28:07 PM (GMT Standard Time, UTC+00:00)  #    Add Comment | Comments [0]
 Friday, March 05, 2010

northwest

Just a shout to let you all know of NW-MTUG's next session on 10th March, it's on Using ASP.NET MVC 2 - Introduction to MVC & What's New and will be presented by Martha Rotter. Check out NW-MTUG's site for all the details.

posted on Friday, March 05, 2010 10:12:57 PM (GMT Standard Time, UTC+00:00)  #    Add Comment | Comments [0]
 Tuesday, March 02, 2010
This is just a very short example of writing files to a CD or DVD using C# on Windows XP. For this I will use the XP Burn Component provided by Microsoft. This is a class library that you can use from C# or any other .Net language to write files to disc, simply down load the MSI file from the XP Burn web site and follow these steps.
  1. Start Visual Studio and create a new Windows Forms Application
  2. Right click on the 'References' folder and select 'Add Reference.'
  3. Browse to the location of the XPBurnComponent.dll file, for me I had chose all the default settings during the installation options and the dll was located under 'My Documents' folder in MSDN\XPBurn. AddReference
  4. Once you have added the dll to your project you can begin using the classes it contains by adding a using directive for the XPBurn namespace


    using XPBurn;



  5. Writing files to the disc is now very easy al you have to do is create an instance of XPBurnCD, call the AddFile method to add files to the disc and the RecordDisc method to actually write the files to the disc. This sample method shows adding files in a directory and writing these to disc.



    XPBurnCD cd = new XPBurnCD(); cd.BurnComplete += new NotifyCompletionStatus(BurnComplete); MessageBox.Show(cd.BurnerDrive); DirectoryInfo dir = new DirectoryInfo(_burnFolder); foreach (FileInfo file in dir.GetFiles()) { cd.AddFile(file.FullName, file.Name); } cd.RecordDisc(false, false);

 

The XPBurnCD class has a number of events that you can use to monitor the progress of the burn process. In the above example I have used the NotifyCompletionStatus so that I can display a message to the user when all the files have been written to the disc. For more information on the classes, methods and properties that XPBurn has take a look at the help file 'XPBurnDocs.chm' which is installed in the same directory as 'XPBurnComponent.dll'.

You can download my Visual Studio 2010 sample application

posted on Tuesday, March 02, 2010 9:23:08 PM (GMT Standard Time, UTC+00:00)  #    Add Comment | Comments [0]