Monthly Archives: June 2011

Updating UI Elements from a Background Thread – Part 4

In this post, I will discuss how to update UI elements from a background thread in WPF. In the previous three posts about multithreading, I provided solution for WinForm applications. These techniques can also be applied to the WPF Windows … Continue reading

Posted in .NET and CSharp | 1 Comment

VBA: Export/Import Excel Files

You will often need to import or export Excel files from/to another workbook when you develop Excel applications using VBA. Here I present two Subs which can help you to perform this kind of job more easily. Sub ImportExcelFile(ByVal sh … Continue reading

Posted in Excel and .NET | Leave a comment

CSV File and DataTable Conversion

Many readers asked me how to convert the comma delimited CSV file to a ADO.NET Datatable. This conversion is needed more frequently in the financial field. As a .NET developer, you may surprise at first if you see so many … Continue reading

Posted in .NET and CSharp, Excel and .NET | 1 Comment

Updating UI Elements from a Background Thread – Part 3

In my previous post, Part 2 , I demonstrated how to update a single UI element from a background thread. In this post, I’ll show you the way to update multiple UI elements from a background thread. We first use … Continue reading

Posted in .NET and CSharp | Leave a comment

Updating UI Elements from a Background Thread – Part 2

In the previous post, I showed you the possible issue associated with updating UI Elements from the background thread. In this post, I will show you two easy ways to fix the problem. The first method is to use the … Continue reading

Posted in .NET and CSharp | Leave a comment

Updating UI Elements from a Background Thread – Part 1

I got many emails from some new C# developers who asked me the same question – how to update the UI Elements from the backgroundworker. Well, I made the same mistake as you did before. Let’s start with an example … Continue reading

Posted in .NET and CSharp | Leave a comment