September 27, 2006

Disable the Standard Window Close (X) Button

This code disables the standard Window Close (X) button on the upper right corner of Windows forms: Private Const SC_CLOSE As Integer = &HF060Private Const MF_GRAYED As Integer = &H1 Private Declare Function GetSystemMenu Lib “user32” (ByVal hwnd As Long, ByVal bRevert As Long) As LongPrivate Declare Function EnableMenuItem Lib

Using the unparsed-entity-uri XSLT Function

This tip shows how to insert an image into the result-tree of an XSLT transformation using the unparsed-entity-uri function. Suppose you have this element: And an unparsed entity such as a bitmap: You can “load” sigla.bmp into a XSLT result tree like this:

Using Complex Numbers

The C++ standard library can handle complex numbers. Complex numbers may be used by including . The class std::complex is defined as a template, allowing complex numbers to use different value types, such as float and double. You can construe complex numbers using the real and imaginary components; you can

Using the Logger to Trace JDBC Driver Managers and Drivers

Both JDBC drivers and the DriverManager use the PrintWriter for logging/tracing. Using java.util.Logger as your logging/tracing tool allows you to take advantage of the Logging framework. Create an adapter class to redirect the log messages to java.util.Logging. // Adapter class to redirect the logging/tracing statements from the // PrintWriter to

Add Continuous Integration Capabilities to Team Foundation Server

he era of agile software development is upon us. Chances are, if your development shop doesn’t already practice some form of agile development, you’re probably competing with a company that does. The rapid-release nature of the agile mindset alongside the idea of releasing features incrementally and frequently inherently increases the