Quantcast
Channel: Interfusion - C#
Browsing all 4 articles
Browse latest View live

Run a Method Repeatedly Based on a Timer in a WPF App

While building a WPF app, I needed to update a ListBox once a minute with data from SQL. I tried doing a SQLDependency, but the table was too large, updated too often, and the server was too small. So...

View Article



Copy Selected Items in WPF Listbox to Clipboard

First you need to create the CanExecute and Executed methods in your code like sovoid CopyCmdExecuted(object target, ExecutedRoutedEventArgs e){     ListBox lb = e.OriginalSource as ListBox;     string...

View Article

Create a Hyper-V Virtual Machine with C#

Creating a Virtual Guest with C# took alot of trial and error even with the current resources on the web. So I thought I would publish a series on how to create a virtual machine and add the required...

View Article

Retrieve the Physical Path of an IIS7 Website with C#

A new part of IIS 7 is the Microsoft.Web.Administration API. This allows programmers to manage IIS with code. The following is a sample of retrieving the Physical Path of a website in IIS 7.using...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images