January 5, 2005

Visual Inheritance with C#

Microsoft VS.NET provides design-time support for form inheritance. A derived form can be added to your solution by right-clicking on your project in the Solution Explorer window and choosing “Add…” and then “Add Inherited Form” from the context menu. After your derived form and its code behind are generated, you

Use Oracle and Triggers to Secure Table Data

Ever deleted some tables accidently and had to waste your time doing them all over again? Oracle, in conjunciton with Triggers, provides an easy solution to this problem. First, create a table that holds the table name. Say you create a table called SafeTable with a column names SafeTableName and

The generate() Algorithm

You can use the generate() algorithm to fill up a sequence container with values that you generate by repeatedly calling a function. This algorithm takes three arguments. The first two arguments are forward iterators marking the range and the third one is the function pointer?or function object that returns values

Make Cell Data Visible with a MouseMotionListener

At times, the width of a table column is so constrained that it obscures the data. Sometimes, the data is obscured because data itself too large for the cell. To alleviate this problem, you can use a MouseMotionListener to tap the mouse motion event and display the necessary data. So

Deselect All Items in a ListView Control

You must set Checked property for each ListViewItem to False to clear all the checked items. ‘Declare the ListViewItemDim lvItem As ListViewItem’ Change each item’s Checked property to FalseFor Each lvItem In lvTables.Items lvItem.Checked = FalseNext

UML for the Software Developer, Part 2: Mastering Associations

lasses are only the first step to understanding UML. In my last article I discussed classes in UML and how they are coded using C#. In this article I will tie-up a few loose ends by describing how classes are arrived at and then march into how they relate to