QuickTips Index - page 2
Enabling Cassini to use Client-Side Validation in ASP.NET
When using Cassini to debug ASP.NET applications you might encounter some problems if you are using client-side validation from Web Server Validator controls. Here's a quick fix.
How to Convert Pixels to Millimeters
If you need to convert pixel value to millimeters (inches, centimeters, etc.) use the code provided here.
Get the list of events with attached event handlers
In Delphi for Win32 OOP, an event of an object might be handled by one method (event handler). Here's how to get the list of those events of an object, that have a handler attached...
Setting a multi-line Caption for a TLabel (at design-time)
You *cannot* specify multi-line text for a TLabel at design-time, using Object Inspector. One trick to add more lines of text for a Caption property of a TLabel, at design time, is to edit the Form's .DFM file directly. Here's how.
Universal solution to formatting values for SQL statements
When working on database applications using dbGO (ADO) over SQL Server or MS Access, you might be having troubles formating the SQL string expression used in various INSERT, UPDATE or SELECT statements.
How to move the mouse cursor to the focused control when the form is displayed
If you want to move the mouse cursor to the control with the (input) focus, you can use the next code in the form's OnCreate event handler ...
How to get the selected text from a Memo control
If you need to know what portion of the text a user selected in a TMemo (or TEdit) Delphi component, right after the selection was made, you can use the next code in the OnMouseUp event...
How to exchange Bitmap images between two TImageList components
If you need to send a bitmap image from one TImageList component to another, you can use the next code...
What does #13#10 stand for, in Delphi code?
You've certainly seen "#13#10" many times in Delphi source code. If you are wondering what those character stand for, here's the answer...
How to set the DataSource property to several db-aware controls in one call
If you need to change the DataSource property of many data-aware controls that do not have a common ancestor you can use Delphi's RTTI (run-time type info) and call only one procedure. Here's how...
Fixing the RadioButtonList ASP.NET control - adding Attributes to Items
Here's the fixed RadioButtonList, the one that actually renders its items attributes (by overriding the Render method and making sure each Item attributes are rendered)...
How to handle system time change
If you need to react when system date time has changed you can handle the WM_TimeChange Windows message...
How to Split and Merge Files
A two handy Delphi methods to split a large file into smaller pieces with defined size - and to merge those files back.
How to Sort a ListView
When you are working with a TListView Delphi component and want to sort the items based on a custom criteria, you can use the following idea...
How to Enable the Refresh button on a DBNavigator for ReadOnly Datasets
In Delphi database applications, when using the TDBNavigator component with read-only datasets, the Refresh button is disabled by design. Here's how to re-enable the DBNavigator's Refresh button.
1 | 2
