Move Position Snippets


15 February, 2015   

Move field position while still retaining its content.

09 April, 2011   

On form, insert a Page Break after the first group of fields. This creates two "pages" in the form, which can be toggled using a command button on each.

As the most important building block of any Delphi application, the TForm object is most of the times used as is. Delphi's TForm object provides enough properties and events to help you do (and control) whatever needed with it. Sometimes you'll find out that a few events or properties are missing... Try creating a simple form application. Now...

C+ source code for Generate a spiral matrix for n elements

* Code to generate spiral matrix for n elements where n >= 1 * To generate spiral matrix for n elements just * Change the value of MAX to whatever u want :)

01 March, 2011   

Mouse Move Paint . A simple program for drawing using mouse move event in vb.net 2005 version... This code is compatible with : VB 2005, VB 2008, VB 2010 Steps For Creation:- --------------------------- 1. Change the background color of the form1 as white. 2. Then, double click the form and change the event as mouse move click event. 3. Now,...

06 October, 2019   

Delphi code example to move columns in a TDBGrid

18 May, 2011   

To randomize an array we loop over the length of the array, removing an object chosen at random and then adding it back onto the Array’s end position. Think of this as having a deck of cards where you pick a card at random from the deck and move it to the top of the stack repeated for the total number of cards in the deck. It’s important to...

11 February, 2011   

Center DIV with Dynamic Height

04 July, 2011   

Animation with threads by John E. Grayson

The ActiveControl property of a Delphi Form object specifies what control has the input focus. You can use this property to set what control is (initially) focused when the form is created and displayed to the user. If you want to move the mouse cursor to the control with the focus, you can use the next code in the form's OnCreate event handler...

13 February, 2013   

PHP Code example for ASCII CAPTCHA

01 August, 2013   

Example Java code for Fast File Copy using NIO

25 October, 2012   

Java code example to fast file copy using NIO

This is a short way of positioning display objects in a grid layout. It makes use of the modulo operator (%) to position each display object along the x axis and the floor method of the Math class for the y position. This example creates 20 instances of a custom display object called MyDisplayObject positioning each instance in a grid 5 columns...

Convert a string of text and ad hyperlinks to all the URLs. We loop through each URL and add a hyperlink

02 February, 2011   

The set height and width ensure only a portion of the sprite.png graphic is shown. The rollover shifts the position of the background image, revealing a different area of the graphic.

05 August, 2013   

CSS code for Big Curly Quotes Markup

31 May, 2012   

Show something moving across the screen

15 April, 2013   

CSS Code for Pure Rollover