Skip to main content

Posts

REST

I have just started to look at REST and how to use it in future projects. The list below are just some of the sites I have visited and found interesting: Building Web Services the REST Way How-to: REST Web services demystified

Windows touch command

If you like the unix command touch and want to to something similar in Windows, i.e. change the time stamp of a file, then there is not built-in command for that. Instead use the copy command like this: copy /b foo.txt +,, If you really want a touch command, then place it in a batch file called touch...

Show tooltip on disabled control

By default are tooltips not showing on disabled controls, but sometimes you want to inform the user about why the control is disabled. Simple add ToolTipService.ShowOnDisabled="true" to the control and the tooltip will always be visible. Example: <Button Content="Example" ToolTipService.ShowOnDisabled="True" /> See more at Microsoft MSDN .

File organization of a WPF project

A few months ago I started with a new project at work. The goal is to create a design tool for warehouses and the application will be running on the Windows platform. After the design choice landed on WPF I started to think about the project’s file structure. This is my first Windows application that is not build on Windows Forms but on WPF. The design tool is not that big of an application, so I think my tips in this article will suit small to medium sized applications well. First of all, how should the application be organized on the highest level? Does the application consist of only one executable file, or one executable file and several assemblies (e.g. DLL files)? For instance, the design tool has an output functionality that formats the warehouse data to a specific protocol and then uploads it to an embedded computer. The output functionality could well be located in a separate project (i.e. an assembly) that is referenced in the main application’s project. How should the m...

Visual Studio crashes when trying to adding/edit a macro

Some days ago I wanted to add a macro to my new installation of MS Visual Studio 2010 and I received the following error message: Cannot find one or more components. Please reinstall the application. The installation of Visual Studion seems corrupt. After some digging I found the solution and only needed to repair the installation, and not to do a complete re-installation. Follow the instructions at this site  if you experience the same problem. If the link is broken, this is what to do: Delete the following file: * On a 64-bit operating system: "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\Common7\IDE\1033\Microsoft.VSDesignerUI.dll" * On a 32-bit operating system: "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\1033\Microsoft.VSDesignerUI.dll" On the Add or Remove programs page, select Uninstall/Change Visual Studio 2010 and then click Next. Select Add or Remove features. Clear and then re-select any of the features in the list. This ...