G
Guest
Hi all,
I have done a code that allows to center a label in a form because it seems
there is no property to do this directly.
Set oInspector = Item.GetInspector
Set oPage1 = oInspector.ModifiedFormPages("Fiche de non conformité")
Set oTitle = oPage1.Controls("txtTitle")
oTitle.Left = (oPage1.InsideWidth - oTitre.Width)/2
I have test my code thanks to a button to execute it, it works, but I don't
know with which event I have to link it to center the label directly when
the form is opened and to allow the label to remain centered when the form
is resized.
I have done a code that allows to center a label in a form because it seems
there is no property to do this directly.
Set oInspector = Item.GetInspector
Set oPage1 = oInspector.ModifiedFormPages("Fiche de non conformité")
Set oTitle = oPage1.Controls("txtTitle")
oTitle.Left = (oPage1.InsideWidth - oTitre.Width)/2
I have test my code thanks to a button to execute it, it works, but I don't
know with which event I have to link it to center the label directly when
the form is opened and to allow the label to remain centered when the form
is resized.