Displays Shut Down Windows Dialog Snippets


'The following code snippet displays the "Shut Down Windows" dialog. 'Is uses undocumented API function in shell32.dll

23 January, 2013   

Adjusted for daylight saving or standard time as appropriate.

It's an unfortunate necessity that you need to write different code for windows sometimes or at the very least load different libraries since there is no fork(), etc. This is how you can tell.

updates (svn up) a working copy and displays the changes

Shows how to focus a control in a Windows Form. If you are working with Web forms it is very simple, you just use "WebControl.Focus()" but this does not work for Windows Forms.

06 July, 2013   

Draws angled text on a canvas at position X,Y.

Have you ever wanted to know how much memory one of your PHP scripts uses when it runs? You might want this information if your script has a memory leak or takes a long time to execute. If that's the case then there's a great built-in function called memory_get_usage, which will display the exact amount of memory being used by your script. This...

03 January, 2013   

Choose a color scheme as found in the Display control panel applet

02 April, 2017   

Last name matches the user input and returns their phone and email information

Here's how to invoke a click on a Windows Start button from code.

19 June, 2012   

Adjusts the brightness of a color by a specified amount in range -255..255.

10 December, 2013   

VB.Net code for Fullscreen

13 December, 2011   

You can use to find and replace text in a variable. This script created by Bruce Phillips, one of the leading posters at MacScripter.

This tip shows how to extract the associated icon and draw it into a small area of the form (e.g. Notepad icon)

01 June, 2013   

How to Embed code for Windows Media

Delphi snippet details dynamically calling windows apis with encryption.

12 January, 2014   

This is a pretty simple little snippet, but it help understanding how to use relational tables w/in PHP.

Delphi code example for Hide minimized MDI child windows

Print variables with file and line number for debugging source code

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...