Copy And Paste Snippets


Delphi code example - how to Cut, Copy and Paste text from the control which has the focus.

25 January, 2012   

Delphi Code example how to Cut, Copy and Paste

Sometimes you have some information on your page and your visitors might want to copy it. The easiest way is to provide a mechanism that allows them to simply click a button to do so. You have to paste this code into the head of your web page:

22 September, 2012   

Allows you to take a user to the previous page they were on using a button

18 September, 2012   

Attempts to close the current window. You can use it for popups

17 November, 2012   

Little bit of javascript which will automatically break out of frames

Copy the declarations and code below and paste directly into your VB project.

13 November, 2012   

Use this snippet to let your visitors change the background color of your Web page. Combined with a cookie, the setting could follow them through your whole site.

09 November, 2013   

Just like your browser's back button, the following script allows the user to press a button to returns the user to the previous page. Paste the following code where you want the button to appear on your page:

14 August, 2014   

Easy way to copy the contents of one table to another table.

02 December, 2012   

Delphi code example for HTML color to Delphi TColor

Here are the code for Notepad Replacement Install Script.

13 August, 2011   

Although there really isn't any foolproof way to protect your web page content, this JavaScript will discourage the more novice Internet users from copying your content. An alert box will appear displaying your copyright information when the right mouse button is clicked. However, this script will not completely protect your content from more...

09 July, 2013   

Copy selected text by allowing user to simply click a button

07 February, 2011   

Automatic Copyright Year

13 November, 2012   

Creating and maintaining an effective JavaScript toolbox can greatly reduce development time. This script will show you how to include specific snippet modules on individual pages.

07 May, 2012   

An example code to Copy data into dotNet array

01 August, 2013   

Example Java code for Fast File Copy using NIO

25 October, 2012   

Java code example to fast file copy using NIO

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.