Treeview Control Snippets


This snippet shows how to add treenode's to a treeview control. It also shows how to add sub nodes.

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

Example Apache .htaccess file to add access control header

30 January, 2012   

The PL SQL code samples making use of the control structures will be given in the following.

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

11 July, 2013   

Help manage mysql database common task

Maxscript UI & Graphical RPManager - Control multiple object properties with single object for

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

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

15 November, 2012   

If one of the input values is zero, then the program will end with an error code of "1" in the job control card listing following the execution of the program. Normal output will be one line printed with A, B, C, and AREA. No specific units are stated.

19 January, 2012   

CSS Code example - how to control the letters in a text

03 January, 2013   

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

Most today's web browsers like Firefox (Ctrl+D), Opera (Ctrl+T) and IE (Ctrl+D) provide a keyboard shortcuts to enable users bookmark their favorite pages. But if you want to provide your visitors with a "Bookmark this page" link they can click you may use the code below: It works in IE, FireFox and Opera. Clicking on the link prompts...

C++ source code for standard ASCII table generator

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

12 May, 2012   

How to prevent users from selecting past or previous day dates in ASP.Net AJAX Control Toolkit CalendarExtender control. Author of this code is Mudassar Khan

By default, Delphi gets its date/time, currency and numeric format from Control Panel's International settings. We can set the constants defined in Delphi, like DecimalSeparator, ShortDateFormat and others like in the code below. To a complete list of these variables, look at Currency and date/time formatting variables in Delphi Help.

The following code snippet shows how to execute standard Control Panel applets (Display Properties, Reginal Settings, Mouse Properties, and more) from Visual Basic code.

29 October, 2011   

Here shown an example how to Compress CSS with PHP