
After playing with silverlight for a while, I found that the Focus method did not work very well to give the silverlight app focus for keyboard input. You can use a trick in javascript to make sure that the silverlight control has focus to begin with. Then later use the Focus method inside your XAML code behind.

Not sure if others have experienced this, but if you try to add a lot of nodes to a treeview, the program will progessively slow down with the addition of each node. Here is how to solve the problem.

resx files are useful for creating window forms that can be multilingual. This blog tells you how to use the resourcemanager to get strings from your form's resx file using managed C++.

Although very much a functional language, F# provides us with object-oriented mechanisms such as classes, inheritance, and encapsulation. The sample below illustrates all three

Has anyone else been able to get this to work properly? It seems the only way is to implement custom formatting in a databound control is to use the Format event. Here is my sample code and how to overcome the problem.

Using cool features like discriminating unions, you can pretty much invent your own language structures in F#.

A while ago, I wrote a blog on using C# and LINQ to obtain all prime numbers up to 1,000,000. In this blog we'll show you the equivalent code in C# without using LINQ.

Aaron Stebner gives us the solution in the link below on how to modify the finished dialog using javascript to allow us to launch our app in a postbuildevent.

This Blog illustrates how to create a Windows Form in F# and Draw a Rectangle that Positions itself based on a Left Mouse Click.

One of many things F# is great for is for implementing algorithms and equations. This sample demonstrates using F# to compute quadratic roots.

After talking to Matt at the MVP Summit and reading his articles, I got interested in experimenting with F# and my conclusion...F# is like C# on steroids. Below is a sample comparing C# recursion to F# recursion.
Lately I've seen articles on C# Corner that have great titles, but no substance. This blog is an attempt to guide those people wishing to share their ideas here without turning off our large reader base.

Although not as fancy as some of the commercial API's available for ASP.NET. Google's chart API is free and allows you to add charts to your web page. Follow the link in this blog to a great article on using the google chart api in .NET

This Blog Describes the code for binding a property to a label control, a not so intuitive process.
One of the issues I ran into when using GDI+ is how to rotate a string and place it on the Y Axis of a Graph. Here is how I solved it.

From WikiPedia - "A Perfect number is defined as a positive integer which is the sum of its proper positive divisors (not including the number itself)". For example, 6 is a perfect number because its divisors are 1,2, and 3. 1+2+3 = 6. In this C# Corner BLOG, we show you how to use LINQ to search for all perfect numbers up to 10000.

AJAX is a powerful technology that increases your ability to do some cool stuff on the Client. You can use the AJAX tools in ASP.NET 2.0 to create JavaScript from the server and execute it on the client. This blog tells you how to put up a message box.

Did you know that you could make the top row of a table frozen dynamically in the browser and have the other rows scroll in IE? Here's how...

You can't easily access the text from a hidden column in a grid view, but you can access the data in the datasource that it is bound to. Recently I ran into the problem of getting data from a hidden GridView column. I gave up trying to get it from the GridView and focused on the data. Here is how I did it:

Recently I ran across the requirement of needing to size a div tag around a table in order to have it scroll. You can actually make the DIV tag act as a server side control! Here's How:

LINQ can be used to find complex mathematical sets. Here is a LINQ Program I created that will find all the prime numbers from 1 - 1,000,000

Recently I ran into the problem of persisting the scroll position of a control which takes advantage of the div tag. Here is the solution.
I often find myself getting the current directory of the executable to use it as a base reference path. This is a tidbit on using reflection to obtain the directory.

As obvious as you would think this would be, it turns out that in order to hide column in a GridView, you need to go through a pretty unintuitive step. (The Windows Form Version is much more flexible). Here I'll show you how.
Ever wonder how to find the application associated with a particular file type? The FindExecutable SDK call in Windows allows you to do this. Not sure if there is a .NET solution to this, but here is an example of using FindExecutable in managed C++.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article