Windows Forms Snippets


Delphi code example for Hide minimized MDI child windows

Many applications, such as CuteFTP and Outlook Express, allows you to enter a password and use it when it is needed. However, if you forget your password, you cannot see it, because it's hidden behind asterisks ('****') characters. The following code snippet scans all windows on the screen and reveals the passwords behind the asterisks...

03 August, 2013   

ColdFusion code for upload files to directory

26 December, 2012   

This cron will do the same on Windows as session management works on Linux

13 March, 2011   

This program make input type for password.

24 November, 2012   

Color header for Windows that integrates with count source code

01 August, 2013   

Example Java code for Fast File Copy using NIO

25 October, 2012   

Java code example to fast file copy using NIO

We can use the Windows API function GetDriveType() to test if the drive is a CD-ROM drive then use the Windows API function GetVolumeInformation() to test if the VolumeName is 'Audio CD'.

We can use the Windows API function GetDriveType() to test if the drive is a CD-ROM drive then use the Windows API function GetVolumeInformation() to test if the VolumeName is 'Audio CD'.

19 July, 2012   

E-mail validation is perhaps the most used validation in web forms, this code will validate email address and also optionally check the MX records of the domain provided in email address to make email validation more robust.

When using forms within your web site, there may be times when you will want to include an example of what you'd like your visitors to fill in your form field. Although you could place some default text within your form field, your users would need to delete the default text in order to type in their own information.

23 March, 2011   

When using forms within your web site, there may be times when you will want to include an example of what you'd like your visitors to fill in your form field. Although you could place some default text within your form field, your users would need to delete the default text in order to type in their own information.

22 August, 2012   

This JavaScript code within your web page HTML between your HEAD tags

To create the formatter paste this code into a new file and name it sfWidgetFormSchemaFormatterDefList.class.php. I saved it in /lib but it also makes sense to put it in /lib/form, depending on your personal preference.

How to create a splash screen for slow loading apps. below shown a Delphi code example

05 February, 2011   

Valid technique, as it doesn't need the <embed> tag.

03 December, 2013   

Delphi code to return type of drive that contains the given (full) path.

15 March, 2015   

How to automize versioning by modifying a line in the AssemblyInfo file.

24 August, 2011   

When you are writing dynamic link libraries and need to control the loading and unloading of a DLL, or if you want to initialize your DLL when it is loaded, you can have a function called DllMain do your initialization. Windows calls the DllMain function of a DLL in four instances: 1) When a process attaches the DLL 2) When a thread attaches...