Event Handling

There are different methods for reacting on events in C#.

The most common ones are demonstrated via s simple use case. In the following samples a timer is created and when the tick event occurs a message box shall be displayed.

The approaches to handle events can be transferred to any other event in dotNET.

The usual way by registering a function:

...

Eclipse Debugging: Handle ‘Source Not found’ issue

If Eclipse stops during debugging with the message ‘Source not found’ in ‘Class File Editor’, this might help:

In Package explorer, right click on your project and select ‘Properties’.
In the uprising dialog choose ‘Java Build Path’ and there the register ‘Libraries’.
In each libĀ“s subtree there is a node called ‘Source attachment’.

Double click it to specify where the source files...

.NET Framework 4 – New Functions and Improvements

A quick overview of the new features introduced with .NET framework 4.0 can be found here: http://msdn.microsoft.com/en-us/library/ms171868%28d=lightweight%29.aspx

The following topics are covered in the article mentioned above:

  • Application Compatibility and Deployment
  • Core New Features and Improvements
  • Managed Extensibility Framework
  • Parallel Computing
  • Networking
  • Web
  • Client
  • Data
  • Windows Communication Foundation
  • Windows Workflow...

Getting started with FDT Flash Development Tool with only three essential steps

Step 1: Download FDT from http://www.fdt.powerflasher.com/developer-tools/fdt-3/download/ and install it.

Note: There is a 30 day demo which you can use for testing.

Step 2: Download and install the flash debug player. It provides advanced debugging options like trace output in the FDT console window. You can get the Adobe Flash Player here http://www.adobe.com/support/flashplayer/downloads.html

Step 3: Configure FDT to use...

T4 – Text Template Transformation Toolkit

Microsoft actually has two major code-generation tools – the CodeDOM and T4.

T4 is already on your machine if you’re using Visual Studio 2008 or higher, or you can download the DSL Toolkit if you’re using VS 2005

T4 is an ASP.NET-style syntax that has direct literal text output, embedded expressions and code logic.

Some links:

http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudioSecret.aspx

http://visualstudiomagazine.com/articles/2009/05/01/visual-studios-t4-code-generation.aspx

http://blogs.msdn.com/davidebb/archive/2009/06/03/codedom-vs-t4-two-approaches-to-code-generation.aspx