}}
private void insertDBControl(int i ){
try {
Point aPoint = new Point(nXDBPos, nYDBPos);
if (bControlsareCreated)
DBControlList[i].setPosition(aPoint);
else{
if (FieldColumns[i].FieldType == DataType.TIMESTAMP)
DBControlList[i] = new TimeStampControl(new Resource(xMSF, "FormWizard", "dbw"), oFormHandler, xFormName, FieldColumns[i].FieldName, aPoint);
else{
DBControlList[i] = new DatabaseControl(oFormHandler, xFormName, FieldColumns[i].FieldName, FieldColumns[i].FieldType, aPoint);
if (DBControlList[i].getControlType() == FormHandler.SOCHECKBOX)
DBControlList[i].setPropertyValue("Label", "");
}
}
this.curDBControl = DBControlList[i];
nDBHeight = curDBControl.getDBHeight();
nDBWidth = curDBControl.getDBWidth();
if (FieldColumns[i].FieldType != DataType.TIMESTAMP)
curDBControl.setSize(new Size(nDBWidth, nDBHeight));
if (curDBControl.getControlType() == FormHandler.SOCHECKBOX){
nYDBPos = nYDBPos +(int)((oFormHandler.getDBRefHeight() - nDBHeight)/2);
aPoint = new Point(nXDBPos, nYDBPos);
curDBControl.setPosition(aPoint);
}
checkOuterPoints(nXDBPos, nDBWidth, nYDBPos, nDBHeight, true);
curDBControl.setPropertyValue("Border", NBorderType);
} catch (Exception e) {