Focus A Control Of A Windows Form Snippets


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.

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

03 January, 2013   

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

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

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

An example of HTML form control where used-password input box

An example of HTML form control where used single text input box

24 December, 2012   

jQuery Code example for Tab On Return Key Press

23 January, 2013   

Adjusted for daylight saving or standard time as appropriate.

26 June, 2014   

Cool script changes your SELECT elements into a Select/Combobox element. Works in Firefox and IE 6+.

21 January, 2015   

Cool script changes your SELECT elements into a Select/Combobox element. Works in Firefox and IE 6+.

03 April, 2013   

Nice little search form snippet using HTML and CSS

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.

13 October, 2012   

You need to give each element a sequentially numbered tab index value in order for this script to work properly.

09 July, 2013   

Copy selected text by allowing user to simply click a button

06 July, 2013   

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

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:

14 December, 2013   

The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.

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

How to disable Future Dates in AJAX Control Toolkit CalendarExtender Control. Author of this code is Mudassar Khan