How set the location of MDI child window...

  • Thread starter Thread starter G.Ashok
  • Start date Start date
G

G.Ashok

Hi,

When MDI child window is initially shown it is displayed at the location
determined by the windows - this is OK. But once the child is hidden using
hide() method and showing it again it displays at another/some times the
same location.

My concern is once the child window is displayed it displays at the location
determined by windows and I moved it to a different location and hidden.
after this the same instance is re-displayed using show() method. This time
it should display at the same location where it is hidden instead it
displays at location where it was initially displayed.

Any one can help in this?

....Ashok
 
G.Ashok said:
Hi,

When MDI child window is initially shown it is displayed at the
location determined by the windows - this is OK. But once the child
is hidden using hide() method and showing it again it displays at
another/some times the same location.

My concern is once the child window is displayed it displays at the
location determined by windows and I moved it to a different location
and hidden. after this the same instance is re-displayed using show()
method. This time it should display at the same location where it is
hidden instead it displays at location where it was initially
displayed.

Any one can help in this?

I can reproduce this behavior. I'd store the location before hiding the
window and reset it when showing it again.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
* "G.Ashok said:
When MDI child window is initially shown it is displayed at the location
determined by the windows - this is OK. But once the child is hidden using
hide() method and showing it again it displays at another/some times the
same location.

My concern is once the child window is displayed it displays at the location
determined by windows and I moved it to a different location and hidden.
after this the same instance is re-displayed using show() method. This time
it should display at the same location where it is hidden instead it
displays at location where it was initially displayed.

I can only say that I am able to repro this behavior using .NET 1.1,
Windows XP Professional.
 
Back
Top