Pacific Database

Home | Contact | FAQs | View Cart

A world of information at your fingertips

How to add a custom icon to a form's title bar

You can give your application a touch of class by adding your own custom icon to any form.

Add the code to a standard module. Then add the code shown below to the form's Load event.

SetFormIcon Me.hWnd, "C:\Icons\myicon.ico"