Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move a FORM from one place to another at RUNTIME

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
DO
Hi all
I would like to know how could I move a FORM from one place to another a RUMTIME.


Thanks...........
 
Gert

In a form event or method put:-

WITH THIS
[tab].Left = n
[tab].Top = n
ENDW

Alternatively, in a control event or method put:-

WITH THISFORM
[tab].Left = n
[tab].Top = n
ENDW

Chris :)
 
Try also:

thisform.Move(Left[,Top[,Width[,Height]]])

Above way is more quick. Assigning Top/Left properties cause 2 movements, when Move event does everything in a signle pass.
Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
May be you are wanting to physically move the form while at runtime. Just press the mouse button on the title bar and move the mouse to desired place.. May be I am that silly to post this... Take it easy.. if I understand the question wrongly....

Just sharing the joke... when Win95 was introduced... one client physically moved a laser printer infront of the computer screen..[ the reason is... the printer driver installation wizard of a printer displayed... I am looking for an available printer.... and the computer froze.. at that place...... ] Take it easy anyway
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Thanks all
Ramana you understand the question wrongly, but I liked the joke, thanks anyway

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top