Geeks With Blogs
Paul's development blog Tidbits from Smart Client, Windows Forms, C#, .NET 2.0, XML, and related toys...
Get a count and percentage of how many updates you've had with each twitter tool. Download C# 3.5 WPF Source Code Note: This source code is mostly a quick hack to get the data I wanted. Also, if you run this on your own data, note that you may need to wait a few minutes for results to come back. In testing out various twitter clients, I wanted to get ......

Update: This tool seems to be only relevant with InfoPath 2003. A co-worker pointed out that due to customer pains around a the lack of a feature like this, in InfoPath 2007 you can right-click a node in the data source and choose "Copy XPath". Cool! Thanks to Scott Heim for pointing this out. So, I love making tools. One-off things that process something. ......

I just started using Windows Live Writer to update my blogs*. I'm thoroughly impressed with what I see, both from the practical sense and just how much cool seems to surround this thing. 1) My Apartment Building, Washington, DC Software+Services is Microsoft's answer to the debate about where the future of computing is going in the near future. My take ......

In order to implement server-side XSD validation against an InfoPath form submission, I had to pull the XSD from the InfoPath document archive (XSN file) and use that to update an embedded resource in a SharePoint solution project (including automated checkout/checkin in TFS). I was able to do it using a batch file. Pretty specialized need, but maybe ......

I've been working on various forms of displaying status messages from enums, and here's the latest preferred iteration of how to do this. Regurgitated and tweaked from WayneHartman.com. public enum XmlValidationResult { [Description("Success.")] Success, [Description("Could not load file.")] FileLoadError, [Description("Could not load schema.")] SchemaLoadError, ......

I just got back from the Visual Studio 2008 InstallFest in Indianapolis. Dave Bost from Microsoft was on hand with some awesome prizes from the source. I won a IndyTechFest polo shirt. There was Xbox360 to be had, awesome catered food (lasagna, salad, cake!), and some good networking. There were also open-mic style code demos. Topics included: - Syndication ......

Doesn't seem to be super well documented, so I figured I'd regurgitate it here. In Firefox, apparently whitespace in a table is treated as "important" by default, and prevents wrapping. To turn this off add this little CSS nugget <style type="text/css"> { white-space:normal !important; } </style> Source: http://www.telerik.com/comm... ......

PDF form and template-based emails often require accessing property values deep within an object graph. For example, in my current project the first name property of an employee is accessed via Employee.Person.FirstName. The following method takes an object path as a string (such as "Employee.Person.Address.Li... and, using recursion, returns its ......

I don't regularly use desktop or web-based RSS feed aggregators for the fact that they take the content away from its context. It usually doesn't add much, but sometimes I can gauge things like professionalism and creativity of the writer (such as is the case with Scott Hanselman's blog--it's snappy layout reinforces its content). Besides, tech blogs ......

I've been using Object<>Xml serialization in .NET based on this post for a while. I decided to enhance it a tad bit with some generics, so I could use it more broadly. Here's what I came up with: using System.Collections.Generic; using System.Text; using System.Xml; using System.IO; using System.Xml.Serialization; /// <summary> /// To convert ......

To simply regurgitate another post from GWB here (so that I can remember it), Javascript debugging is possible in Visual Studio .NET. In essence, it's not very good, but it's better than nothing and its integration with the common IDE keeps it familiar.



For whatever reason, Microsoft didn't provide a Sort method in IList. So it seems like sorting a generic list requires that the list be adapted to an ArrayList. Here's a class and method call that supports sorting any list by the ToString() value of its members. public class ToStringComparer : IComparer { public int Compare(object x, object y) { return ......

Using the msbuild community tasks project it becomes easy to change App.config and Web.config files as part of the build process. I've recently implemented a build script for a smart client application that allows building in multiple locations connecting to different application servers. First, download the msbuild community tasks project. You can ......

I've been working with the Windows Forms 2.0 TableLayoutPanel, have run into some stumbling blocks, and was hoping somebody can help. 1) There doesn't appear to be a way to equate controls with their cell position. I have a need to determine where “this.txtFirstName... is in the row 3, cell 4 position. 2) There doesn't appear to be a way to ......

Code snippets are pretty neat. Here's the first one I've created. It sets up a custom event and a handling routine. To use it, you'll need to download the .snippet file because uploading the code into the blog proved to be too much of a pain. You can import the snippet with Tools->Manage Code snippets, or just put the file in C:\Program Files\Microsoft ......

Copyright © Paul Whitaker | Powered by: GeeksWithBlogs.net | Join free