codebrothers.net :: Home
User: Guest  Login
codebrothers.net :: Home
... home of the code blues!

Found entries:

ASP.NET - Chart Control Download Links

On popular request I wanted to share a simple list of download links with all the tools and installers needed to enable the usage of the ASP.NET Charting Controlsout of Visual Studio 2008. Downl...

Calling WCF from Silverlight over SSL failes with error

Just stumbled across a wired error when i tried to access a SSL secured WCF service from Silverlight (3.0).When I first tried it I got the following error message back:...An error occurred while tr...

Posted: 4/12/2010 11:03:00 AM by mdenkmaier | 0
Filed under: IISHow toSSLWCFSilverlightC#RIA
Howto: Handle MouseWheel messages (WM_MOUSEWHEEL) manually

Today i had to manually handle the mouse wheel functionality in a customer project and suppress the raising of the MouseWheel event as long as a specific condition returned false. After some resea...

Posted: 1/25/2008 7:58:00 AM by mdenkmaier | 0
Filed under: How toC#Development
Howto: Fixing Word 2007 Crash on Exit

After several weeks living with a really bad bug in Microsoft Office 2007 wich leads to big problems when i tried to close my Word 2007 application and hours of searching for a possible solution i ...

Posted: 1/22/2008 10:48:00 PM by mdenkmaier | 0
Filed under: How toGeneral
How To: Add a Copy/Move to Folder shortcut to explorer menu

A major time saving extension for the standard windows eplorer menu is this "Copy/Move to Folder" explorer context menu shortcut.´ Just save the following script to a file called SaveToFolderHac...

Posted: 12/3/2007 6:23:00 AM by mdenkmaier | 0
Filed under: How toGeneral
Is the Visual Studio 2008 Javascript debugger crippled?

Kevin Dente is discussing a little but annoying problem regarding to the Javascript debugger in the new Visual Studio 2008! Share this discussion...

How To: Resolving unexpected behavior and errors using SQL Server views

Sometimes you have to create views which are based on other views or tables. But there are some limitations and pitfalls when it comes to making changes in the structure of the underlying tables/v...

Posted: 10/14/2007 9:34:00 AM by mdenkmaier | 0
Filed under: SQLHow to
How to: Display current database and object size

I am often asked how to determine the current database size from SQL code. SQL Server gives you the system stored procedure sp_spaceusedwhich does exactly this. To retrieve the current size o...

Posted: 10/8/2007 6:58:00 AM by mdenkmaier | 0
Filed under: SQLHow to
How to: Getting a working Silverlight 1.1 Alpha development environment

If you are new to Silverlight development or want to switch from Silverlight version 1.0 to 1.1 you should exactly follow these steps to ensure a working environment: 1. Ensure that you have a cle...

Posted: 8/22/2007 6:25:00 AM by mdenkmaier | 0
Filed under: How toSilverlight
How to: Hunting SQL Server Deadlocks and logging them to file

The following describes the possible ways and the steps needed the get more details about SQL Server dead locks. The engine saves the information by default to the SQL Server error logs. 1. Use...

Posted: 8/10/2007 8:49:00 AM by mdenkmaier | 0
Filed under: SQLHow to
How to: Ensure correct german characters in SQL scripts using sqlcmd.exe

The command line tool sqlcmd.exe is well known in the world of a Microsoft (SQL Server) developer.Normally you will execute SQL scripts using the following syntax: sqlcmd.exe -E -S <your_server...

Posted: 5/11/2007 9:29:00 AM by mdenkmaier | 0
Filed under: SQLHow toDevelopment
How to: Display assembly in the VS.NET Add Reference dialog box

When you are developing custom class libraries you may want users to be able to pick them directly from the Add Reference dialog box in Visual Studio rather then have them browse for it. For thi...

Posted: 5/7/2007 5:55:39 PM by mdenkmaier | 0
Filed under: How toVisual Studio
How to: Switch SQL Server 2005 to single user mode

Here is a short tutorial on switching a SQL Server 2005 instance to single user mode: 1. Stop the service: Using a command prompt type: net stop MSSQL$<your_instanceName> 2. Start t...

Posted: 4/23/2007 5:17:41 PM by mdenkmaier | 0
Filed under: SQLHow to
How to: Catch UnhandledException in Windows Services

From time to time you will have to implement some functionality as an Windows service. Along with some other issues regarding to Windows services you often get some troubles when unhandled excepti...

Posted: 4/3/2007 6:52:46 AM by mdenkmaier | 0
Filed under: How toC#
How to enable Snapshot Isolation on SQL Server 2005

SQL Server 2005 introduces a new snapshot isolation level to enhance concurrency for OLTP applications. In earlier days concurrency was based on frequent locks of rows, pages and tables. snapshot i...

Posted: 3/23/2007 7:32:54 AM by mdenkmaier | 0
Filed under: SQLHow to
How to define optional C# method parameters with [Optional] attribute

One feature that i am missing when using C# is the ability to declare a method parameter as optional. If you have to call a specific method without having enough input values to meet the exact sig...

Posted: 3/9/2007 7:08:32 PM by mdenkmaier | 0
Filed under: How toC#Development
How to disable Visual Studio 2005 automatic item population of toolbox

If you have many projects with even more user control in your Visual Studio 2005, you will encounter an extremely long delay when opening a form with the forms designer. This delay exists because V...

How to ensure that only a single program instance is running

Often you want to ensure that only a single instance of your application is running on a maschine. Therefore you need a mechanism to determine if an instance is alread<y running to avoid startin...

Posted: 2/9/2007 8:38:38 AM by mdenkmaier | 0
Filed under: How toC#Development
How to create Open here explorer context menu entry

As an developer you often have quickly execute some batch files or console programs from within specific folders. Therefore it is a real pain if you always have to open a command prompt by hand and...

Posted: 12/14/2006 12:49:50 AM by mdenkmaier | 0
Filed under: How toDevelopment