Windows Forms Snippets


28 March, 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...

12 September, 2012   

Delphi code example to draw rotated text

02 April, 2012   

This Delphi code shows how to draw rotated text

This Unit is Made by Snify and MindfreaK Remember, the Process is chosen randomly and could be terminated by itself , so u need an re-inject system which checks for an running persistence module/dll/codeinjection. ( TIPP: Communicate via Mutex )

The following code snippet shows you how to open special Explorer windows, like My Computer, Control Panel, Printers, Fonts and more... Written by Nir Sofer

08 July, 2015   

Source code for a game setup for DirectX

25 January, 2014   

To detect if Aero Glass is enabled we must use the DwmIsCompositionEnabled function.

27 February, 2012   

An example C++ code for Font dialog demo

26 September, 2011   

Pop up windows can provide a great way to gain new subscribers to your publication and even increase your sales. However, they can also be very irritating to your visitors. For this reason, you may want to use a pop up window JavaScript code that will only load the pop up window on your visitor's first visit. That way you're not continually...

Due to the default Windows handling of the WM_GETMINMAXINFO message, the max size of the form is set to the screen size. Add a button to a form and try this:

13 February, 2014   

Just got inspired last night and decided to start a class to get the screen in "blocks" and check which one has changed to update only those.

01 April, 2011   

This sticky footer solution is working in all major browsers, including Google Chrome! It works with floated 2-column layouts and we don't get overlap in re-sized browser windows unlike older solutions you find when you Google sticky footer. And you don't need an empty push div.

03 April, 2011   

If you're looking for a JavaScript code to enable you to create a first visit pop up window for your web site, you've come to the right place. Pop up windows can provide a great way to gain new subscribers to your publication and even increase your sales. However, they can also be very irritating to your visitors. For this reason, you may want...

24 July, 2016   

Dynamically add form fields to your forms.

16 January, 2011   

One of the most common mistakes I see beginners and intermediates fall victim to when it comes to CSS is not removing the default browser styling. This leads to inconsistencies in the appearance of your design across browsers, and ultimately leaves a lot of designers blaming the browser. It is a misplaced blame, of course. Before you do anything...

12 March, 2013   

Example code Raw Disk Access Unit

06 May, 2014   

This PHP script allows you to parse multiple feeds from different sources into separate pages using SimplePie class. A fast and efficient way to serve fresh content to your site as to provides the most up-to-date information to the readers.

10 November, 2012   

Visual Basic code example for creating a Global Hotkey (active throughout Windows)

A Template for building OpenGL applications using GLUT.

Source code for Trigonometry Table made