For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > November 2005 > Moving a child window









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Moving a child window
Adrian

2005-11-09, 7:59 am

I am using getObject to attach my form to a microsoft visio(a microsoft
drawing tool) drawing and then during the execution the code resizes
the form, what happens is that the form is resized all right but it
also moves from its position. can anyone please point out the problem?

thanks in advance

Bob Butler

2005-11-09, 7:59 am

"Adrian" <richard.the.lionheart@gmail.com> wrote in message
news:1131530283.385347.276490@g44g2000cwa.googlegroups.com
> I am using getObject to attach my form to a microsoft visio(a
> microsoft drawing tool) drawing and then during the execution the
> code resizes the form, what happens is that the form is resized all
> right but it also moves from its position. can anyone please point
> out the problem?


Not without more specifics on what you mean by 'attaching' your form (I
don't see how GetObject could do that) and how you are doing the resizing.
All that can be said is that you are changing the top & left properties, the
owner and/or the state of the form when you attempt to resize it.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

Adrian

2005-11-10, 4:00 am

by attaching i meant i use getobject and then i make my form the child
of the Visio drawing,
resizing is done by changing the width and height properties of the
child form, but when doing so, the form also moves with respect to the
parent window, this is unwanted.
thanks

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com