How-to: Register a keyboard shortcut (hot key) in a .NET Windows Forms Application.

There may come a time when you want to implement some extra features or maybe an Easter egg into your application using keyboard shortcuts. I was recently tasked with creating an Easter egg so we could test some functionality in CodeSmith. After countless searches looking for an elegant solution (I found a few ugly solutions and some nicer ones) I came across Method #3. I’ll First touch on the one I didn’t choose to go with. Method #1 The following code block will make an unmanaged call to the user32.dll to register the hotkey. I would never go this approach, but if you were like me...

How-to: Clear cached contacts from Microsoft Outlook.

A long time ago we needed a script to remove the cached contacts in Microsoft Outlook. After some research we found that these were stored in a NK2 file in the user profile directory. To run the script please close Outlook and create a new batch file (text file with the extension of .bat), or download the file below. Please not this will create a backup of the NK2 file so everything can be reverted. @ECHO off TITLE Clear the nickname automatic completion caches in Outlook CLS ECHO Clearing the nickname automatic completion caches in OutLook... ECHO Created by Blake Niemyjski ( http://windowscoding...

Microsoft Visual Studio 2010 Beta 1 is coming to MSDN on May 18th.

So far I have been very impressed with the CTP builds of Microsoft Visual Studio 2010 . There are some really welcoming changes that are apart of Visual Studio 2010 like UI Unit tests and a completely new IDE written in WPF. The only area where I thought was lacking was the responsiveness of the application. Last night a few members of the Visual Studio team announced that one of there main goals for Beta 1 and RTM is on Performance. I am very excited to hear this. "During these last weeks we’ve made a lot of progress, I’m sure you’re going to feel the product is a lot snappier...

How-to: Protect your Telligent Community website from spammers

One should always be aware that your site could be attacked by spam bots if you don’t take the proper precautions. The easiest and quickest way to help prevent 500+ spam users from joining your site is to configure the default options to make it harder for spam bots to create accounts. Please note that this can also reduce the number of registrations on your site due to the extra steps it takes to register. Navigate to the Account Settings tab in the control panel (/controlpanel/membership/AccountSettings.aspx). In the Registration Settings tab Set Account Activation to Email . If you have...

How-to: protect your Telligent Community website from rouge spiders with a robots text file

Over the course of the past two years, I have worked on a number of Community Server sites. The goal of these tips are to share useful information about Telligent's Community platform. There are a few ways you can protect yourself from rouge search bots from stealing your content and bringing down your site. The easiest way is to setup a robots text file, which will tell search engines to ignore certain files or directories. I found this guide which was very helpful on setting up a robots.txt file in the root directory of your website. There are a few disadvantages to this approach. It isn’t...

CodeSmith Generator 5.1 Released

On May 6th we released CodeSmith Generator 5.1 . This update brings in many welcoming changes, to name a few: . netTiers 2.3 , PLINQO 3.0 . Also CodeSmith Generator and now requires that the .NET 3.5 Framework is installed before CodeSmith Generator installs. Final Updated installer to launch CodeSmith Generator after install. Loading a CSP on a new machine with an new connection string will cause TableSchema's UI to be blank. Fixed a bug where removing a data source from Database Explorer wouldn't permanently remove the data source. Fixed a threading error when removing a data source from...

How-to: Open a mini dump file (mdmp) with WinDbg

Today I was debugging an issue where Microsoft Visual Studio was closing at random in a Microsoft Visual Studio Package. We narrowed down the issue to a previous Microsoft bug report: Fatal Execution Error . I came to a point where Microsoft Visual Studio was creating a mini dump file. After some quick thinking, I downloaded and installed Debugging Tools for Windows . I then opened WinDbg and clicked on “Open Crash Dump” and navigated to the location above. Your final result will look something like this: If you are looking for more information on how to analyze a mini dump file or...

CodeSmith Generator CSLA Templates Part 1: The Introduction

I've been working on the CodeSmith Generator CSLA Templates periodically over the past few months at CodeSmith Tools . We have designed the templates from the ground up around the CSLA.NET Framework version 3.6.2. You might be thinking what's the big deal it's just another set of CSLA templates. You are mistaken, we have done a lot of research and gathered a lot of feedback. The end result is a streamlined CSLA experience that is highly customizable. To start using the CSLA templates just navigate in the Template explorer to CodeSmith.CSLA and open the Quick start template. This will...

.netTiers 2.3.0 Beta 2 Released!

The .netTiers team released .netTiers 2.3.0 Beta 2 today. .netTiers 2.3.0 is a maintenance release containing many bug fixes and patches. We have also added various requested features like Enterprise Library version 4.1 as well as support for Visual Studio 2008. I would have to say the biggest and most requested feature that went into .netTiers 2.3.0 Beta 2 was support for Oracle ! Here is a list of all the changes since .netTiers 2.3.0 Beta 1: 11/30/2008 - Changed Build numbers to reflect version 2.3 Beta 2 - [Issue #118] Adding a separator template to the TableRepeater.cst / ViewRepeater.cst...

How-to: Connect to an Oracle Database with CodeSmith Generator

Sometimes User interfaces can't provide a solution for every scenario where you might need additional functionality by customization. One area where you might come across this is if you're trying to use Oracle on an 64bit machine or in a custom Oracle instance. If you are running Windows XP there is a good chance you can get away with using the built in Connection Editor and use CodeSmith to connect to your Oracle Schema. If this doesn't work you may be scratching your head and thinking you are out of luck. The good news is your not. You will need to use a modified connection string...