| || |
Change the mainform position
i need to change the position of mainform (window).previously i just drag the form to particular position.since it might not functioning well if we run it in different PC (due to different resolution),so i need to write some coding for it.please help me ~
i search in testcomplete help and found this codes but i do not know how to use it
Set form = UserForms.SampleForm
form.Left = 2
form.Top = 2
FullName of the form is :
Sys.Process("MeasurementManager").WinFormsObject(" MainForm").WinFormsObject("MdiClient", "").WinFormsObject("m_frmMain")
MappedName of the form is :
Re: Change the mainform position
You've read help topics about User Forms which allows you to create and use forms in TC projects. This is not related to your case.
You need to use the Position method (see the "Position Action" help topic).