Getting Started in WPF with IValueConverter

For those of you looking to learn or hone your fundamental WPF skills, I thought you might find this video beneficial.  It’s a nice 11-12 minute video on what you can do with IValueConverter by the lovely Beth Massi.   The video goes through an example of IValueConverter in VB.NET, but they also have some C# code to download if you like.  Check it out:

http://msdn.microsoft.com/en-us/vbasic/dd367843.aspx

The IValueConverter interface is very handy when you want to convert or format a given object to your specifications, and in Beth’s example she also displays how you can use it to verify and do type validation of user edited data.

Visual Studio 2008 broken Intellisense when debugging C# code

I was having an issue on my laptop where the Intellisense was broken when debugging C# code.  It is working for VB.NET code.  Here’s what it looks like for VB.NET when you start to type a variable name in the Watch window when in the debugger:

vb.net-intellisense-working

The problem is if I debug a C# project and try the same thing, I get nothing.  No Intellisense even using the Ctrl-Space keyboard shorcut.  Even the Immediate Window doesn’t work.

Since on my laptop I have ReSharper and a bunch of other add-ins installed, I chalked it up to some kind of conflict.  But today, I just rebuilt a desktop workstation and put a clean install of Visual Studio 2008 Team System with SP1 and nothing else installed.  Guess what… the problem still exists for me.  Some Google searches also didn’t help.  It doesn’t look like anyone else is having this issue, so I figured I better get a blog post about it in case you are in the same situation. I will update this post if I find a solution.

Please comment if you are having the same issue, or even better had the issue but found a fix!  :-)

Getting detailed domain user info from the command line

I had a need the other day to find out if and when my domain account was expiring and a friend of mine offered this command:

C:\>net user billyg /domain

Running that command gives you something like this:

The request will be processed at a domain controller for domain fakedomain.com.

User name                    billyg
Full Name                    Bill Gates
Comment
User's comment
Country code                 (null)
Account active               Yes
Account expires              Never

Password last set            12/1/2008 9:30 AM
Password expires             Never
Password changeable          9/25/2001 8:15 AM
Password required            Yes
User may change password     Yes

Workstations allowed         All
Logon script
User profile
Home directory
Last logon                   1/4/2009 2:04 PM

Logon hours allowed          All

Local Group Memberships      *Administrators
Global Group memberships     *Domain Admins        *Domain Users
The command completed successfully.

 

When you’re a consultant like myself and have a bunch of different domain accounts, it can be a helpful command.

Posted in Windows. 1 Comment »
Follow

Get every new post delivered to your Inbox.