Changed CodeTools AddUnitToMainUsesSection to prevent duplicate entries into the uses when dropping ontrols onto a form. Fixed a bug in MessageBox Shane