To make Invisible Factbox in Ax 2012 you can write code below in particular event as per your requirement.
PartList _partList = new PartList(element);
FormRun _formRun;
int k;
for (k = 1; k <= _partList.partCount(); k++)
{
_formRun = _partList.getPartById(k);
_formRun.design().visible(false);
}
PartList _partList = new PartList(element);
FormRun _formRun;
int k;
for (k = 1; k <= _partList.partCount(); k++)
{
_formRun = _partList.getPartById(k);
_formRun.design().visible(false);
}