March 30, 2004

Free Your C# Apps from .NET Platforms

ainsoft’s Visual MainWin is a revolutionary product that allows you to develop applications in C# and deploy and run them on J2EE application servers (for a detailed review, click here). Using this flexiblity, in conjunction with the simplicity of Web services development provided by Visual Studio.NET, you can finally create

Create a Sortable Column Dynamically

There are times when sorting your resultset by the primary key doesn’t accomplish what you need. One way to get around this is to create a sortable column dynamically in your query using the CASE function. SELECT name, title, priority = (CASE title when ‘President’ then 1 when ‘Vice President’

USE API Programming to Determine Whether a File Exists

Put this code in a BAS Module: Public Const INVALID_HANDLE_VALUE = -1Public Const MAX_PATH = 260Public Type FILETIME dwLowDateTime As Long dwHighDateTime As LongEnd TypePublic Type WIN32_FIND_DATA dwFileAttributes As Long ftCreationTime As FILETIME ftLastAccessTime As FILETIME ftLastWriteTime As FILETIME nFileSizeHigh As Long nFileSizeLow As Long dwReserved0 As Long dwReserved1 As

Change the Look and Feel of a Java Application

Use the following code to give your Java app a Windows look and feel: UIManager.setLookAndFeel(“com.sun.java.swing.plaf.windows.WindowsLookAndFeel”); Ensure the class “com.sun.java.swing.plaf.windows.WindowsLookAndFeel” isin your jvm bootstrap classpath. Mostly it can be found in yourjdk/jre/lib/rt.jarFor metal look and feel import javax.swing.plaf.metal.*; UIManager.setLookAndFeel(new MetalLookAndFeel());Similarily you can set theme for GTK+, CDE/Motif or your own themetry

Fix Up Your HTML with HTML Tidy and .NET

ou may never have heard of it, but HTML Tidy isn’t new. HTML Tidy is a once-free but now open source application. It was originally written in C as a command-line executable by W3C employee Dave Raggett, before being taken over as an open source initiative in 2000. Somewhat characteristically