Below is a class that contains a method that can create a DataTable object form Linq Query Results. I find the LINQToDataTable method really handy when I am creating Crystal reports. Crystal Reports love to report on DataTables....
An interesting question came up recently, where someone wanted to have a TreeView in which: Each TreeViewItem consisted of two separate lines of content but the second line may be hidden, depending on its content. This was actually a Windows Forms question...
Heres a short exmaple to get you thinking about how SQL query results can be joined to tables for purposes such as attaching summary data....
In this earlier blog , I explained how you can create and use a Command to carry out a task based on a variety of user actions. These actions included key presses, mouse actions and key/mouse combinations, as well as clicking on WPF controls. At the time...
There are changes to the Visual Studio 2010 help system that you'll want to learn about. For example, the new 'Manage Help Settings' menu item: The menu item opens the new 'Help Library Manager' dialog: From MSDN: "The Help Library...
I've got to be honest and admit up front that initially I wasn't completely sold on the idea that WPF Commands are the great leap forward that they are sometimes billed as. OK, so I get that they can reduce the repetition of event handling code...
The most successful projects, software or otherwise, are the ones where everyone has a good idea of what they're doing and why. A healthy organization communicates its goals, successes and failures, and has well-informed employees. A really good illustration...
As I was finishing off the previous blog item on the Windows Forms ListView, it occurred to me that there isn't much documentation around to explain how to edit the ListView items. So I thought it might be useful to cover a couple of approaches in...
I just got a note from Visual Basic MVP Steele Price, who pointed out a fourth way of writing XML. Unlike the three in my last post, this method will not work in C#. As I should have mentioned, VB allows you to put XML directly in your code, which is...
XAML is brilliant for creating user interfaces at design time, but if you need to make changes dynamically at runtime, this can sometimes be a problem. To take an example, let's say that you need to allow an Image to move to a different location on...
The Windows Forms ListView is designed to display data. You can use a simple text file as the data source of a Windows Forms ListView. Let's start with a scenario where you have a txt file that contains the data. Each line of the text file represents...
Silverlight 3 applications can be installed as local applications on PCs and MACs. This is a brief 'how to' for enabling, installing, and removing a Silverlight 3 out of browser applications. 1. Use Visual Studio 2008 or 2010 to create a Silverlight...
I just got back from the "Code Camp" of the Boston .Net User Group. It was a really good event, and I saw Joseph Anderson 's presentation about using LINQ and XML. Basically, he talked about XElement and XDocument , which are new in .Net...
Read all about it at: Final Stretch
The Visual Basic My.Computer.FileSystem GetFiles method can be used to search for files with a specific extension in or below a specific directory:
Below is a function for that purpose:
...