Wes' Puzzling Blog
... trying to solve the puzzles of .NET
-
Tooltip now has the ability to be displayed as a Balloon
While adding tooltips to the application I'm working on in C# Express (more on that later) I noticed the property IsBalloon and though hmmmm. So I set it true and now my tooltips display as balloons instead of the normal rectangular popups. There are a few more changes to the ToolTip Members. Two others properties I think are helpful are ToolTipTitle and ToolTipIcon (ie Info, Warning, Error).Also on a side note when getting the links from the MSDN beta documentation for .Net 2.0, I noticed that the site is different. Does anyone know what is with the change to the MSDN beta documentation? -
Copernic Desktop Search
Copernic Desktop Search - They claim to be "The Search Engine for your PC".I just installed it and it is indexing my files right now, we'll see if it is as good as they say. The first thing I see that I don't like about it is their Web Search, it uses http://www.alltheweb.com with no option to change it, that I can find, however I will over look this since that is not its main purpose. -
Using C# Generics on Static Classes
I was playing around with some C# generics today and I began thinking about different things I could do with them. Then I began to wonder what happens if you give a static class generic type parameters? I wasn't even sure it would compile but sure enough it did. Then I tried to come up with an example where this might come in handy. Here is a simple factory pattern example using a C# generics:
-
How to store secrets on a machine... Using the new ProtectData class in the .Net Framework 2.0
If you haven't read How to store secrets on a machine from Keith Brown's book-in-a-wiki, you should it is a great read. It talks about how to use the DPAPI to store data locally on a machine. Here is an excerpt from it about the ProtectedData class provided in .Net 2.0:
-
Standard Windows Password Character
I was writing a login form for an application I'm working on and I decided I didn't want to use the standard '*' as my password character. I wanted to use the black circle (●), the same one that windows login uses. I figured out what the Unicode value for it was (0x25CF) and then I tried to set that as the password character for my textbox through the designer but no luck it would only take standard ASCII characters. So I decided to set in my form constructor, like:
-
Determine if an executable is a Console Application in C#
Thanks to Scott's comment I went on the hunt to figure out how to tell if an executable is a console application or not. After much hunting I figured out how to do it, here is what I came up with. Enjoy!
-
Windows Run Command Wish List
In order to get more familiar with the new features in version 2.0 of .NET and C# I have been working on a side project using C# Express Beta 1. The project that I have been working on is a replacement for the windows run command. I for one use the run command a lot and there has always been some features lacking. Currently the run command provides a drop down list of the last 26 typed commands and the auto complete functionality for the file system / browser history as described here. Some features that I have already implemented for my new run command are:- Auto complete commands - as you type you are given a suggestion list matching what you have typed and the command that matches the closest is filled in for you
- Smart suggestion list - the commands you use the most often appear at
the top of the suggestion list, and the commands are pre-populated with common
commands that someone might run like:
- Start Menu Shortcuts
- Control Panel Applets
- Favorites
- Recently Opened Documents
- Common Windows Commands - i.e. My Computer, My Pictures, Administrative Tools, etc.
- All Executables in the Path
Turn AutoCompletion on for Run Command
Help prevent windows startup clutter
I have been planning on talking about cleaning up your windows startup for a while but it looks like Jonathan Hardwick bet me too it with his excellent post What is all this stuff doing on my computer?. I do however have a couple more things to add.
My blogging philosophy and my need to analyse my referral log
One of the primary reasons that I blog is to help the community, I don't really expect anyone to directly subscribe to by blog (just out of curiosity does anyone?). I depend on people finding my information through search engines. Most of my posts are technical things that for what ever reason I spent some time figuring out how to accomplish.