I want to be able to 'make' a MDI Child Window appear at the same place in
my MDI container. For example, maybe I want this Child window to always
appear at Top=0 and Left=0; or, when the user exits my Child window, I save
the last location for that window, and then when the reopen the window I
want to restore the location they were at previously.
In my Load event, I set the .Top and .Left properties for my child window;
however, when it shows in my MDI container it is always positioned
automatically (cascaded) and NOT positioned at the place I told it too. How
can I make it appear at the location I want it to within the MDI container?
Thanks.
Tom 4 15054
when you open your child....
Dim f As New Form1
f.StartPosition = FormStartPosition.Manual 'here's the key
f.Left = 0
f.Top = 0
f.MdiParent = Me
f.Show()
"Tom" <to*@nospam.com> wrote in message
news:OY**************@TK2MSFTNGP10.phx.gbl... I want to be able to 'make' a MDI Child Window appear at the same place in my MDI container. For example, maybe I want this Child window to always appear at Top=0 and Left=0; or, when the user exits my Child window, I
save the last location for that window, and then when the reopen the window I want to restore the location they were at previously.
In my Load event, I set the .Top and .Left properties for my child window; however, when it shows in my MDI container it is always positioned automatically (cascaded) and NOT positioned at the place I told it too.
How can I make it appear at the location I want it to within the MDI
container? Thanks.
Tom
when you open your child....
Dim f As New Form1
f.StartPosition = FormStartPosition.Manual 'here's the key
f.Left = 0
f.Top = 0
f.MdiParent = Me
f.Show()
"Tom" <to*@nospam.com> wrote in message
news:OY**************@TK2MSFTNGP10.phx.gbl... I want to be able to 'make' a MDI Child Window appear at the same place in my MDI container. For example, maybe I want this Child window to always appear at Top=0 and Left=0; or, when the user exits my Child window, I
save the last location for that window, and then when the reopen the window I want to restore the location they were at previously.
In my Load event, I set the .Top and .Left properties for my child window; however, when it shows in my MDI container it is always positioned automatically (cascaded) and NOT positioned at the place I told it too.
How can I make it appear at the location I want it to within the MDI
container? Thanks.
Tom
Ah, .Manual was the key. That fixed it. Thanks!
Tom
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:eY**************@TK2MSFTNGP09.phx.gbl... when you open your child.... Dim f As New Form1
f.StartPosition = FormStartPosition.Manual 'here's the key
f.Left = 0
f.Top = 0
f.MdiParent = Me
f.Show()
"Tom" <to*@nospam.com> wrote in message news:OY**************@TK2MSFTNGP10.phx.gbl... I want to be able to 'make' a MDI Child Window appear at the same place
in my MDI container. For example, maybe I want this Child window to always appear at Top=0 and Left=0; or, when the user exits my Child window, I save the last location for that window, and then when the reopen the window I want to restore the location they were at previously.
In my Load event, I set the .Top and .Left properties for my child
window; however, when it shows in my MDI container it is always positioned automatically (cascaded) and NOT positioned at the place I told it too. How can I make it appear at the location I want it to within the MDI container? Thanks.
Tom
you're welcome
"Tom" <to*@nospam.com> wrote in message
news:en**************@TK2MSFTNGP10.phx.gbl... Ah, .Manual was the key. That fixed it. Thanks!
Tom
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message news:eY**************@TK2MSFTNGP09.phx.gbl... when you open your child.... Dim f As New Form1
f.StartPosition = FormStartPosition.Manual 'here's the key
f.Left = 0
f.Top = 0
f.MdiParent = Me
f.Show()
"Tom" <to*@nospam.com> wrote in message news:OY**************@TK2MSFTNGP10.phx.gbl... I want to be able to 'make' a MDI Child Window appear at the same
place in my MDI container. For example, maybe I want this Child window to
always appear at Top=0 and Left=0; or, when the user exits my Child window, I
save the last location for that window, and then when the reopen the window
I want to restore the location they were at previously.
In my Load event, I set the .Top and .Left properties for my child window; however, when it shows in my MDI container it is always positioned automatically (cascaded) and NOT positioned at the place I told it
too. How can I make it appear at the location I want it to within the MDI container? Thanks.
Tom
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Peter Oliphant |
last post by:
I've tried to set up a Form location via its constructor in the following
way (My_Form is derived as a child of the standard Form):
My_Form( int x, int y, int w, int h )
{
Rectangle rect( x,...
|
by: Lance |
last post by:
I've noticed that controls that are contained in MDI child forms fail to raise MouseLeave events if the MDI child form's MdiParent property is set to Nothing (after it was set to an existing MDI...
|
by: Charles Law |
last post by:
For some reason, when I click the X to close my MDI parent form, the action
appears to be re-directed to one of the MDI child forms, and the parent
remains open. I am then unable to close the...
|
by: Henry Wu |
last post by:
Hi, I am aware that TransparencyKey only works with top-level forms or
Non-MDI Child Forms, if one tries to set the opacity or
transparencykey property to a MDI-Child form, it will have no effect....
|
by: Tom |
last post by:
I want to be able to 'make' a MDI Child Window appear at the same place in
my MDI container. For example, maybe I want this Child window to always
appear at Top=0 and Left=0; or, when the user...
|
by: Zack Sessions |
last post by:
I am using VB.NET 2003.
I have read the threads concerning the problem where the
FormStartPosition of CenterParent is ignored if the form is displayed
with the Show method as opposed to the...
|
by: Lenster |
last post by:
Environment
---------------
Visual Studio.NET 2003 Version 7.1.3088
..NET Framework 1.1 Version 1.1.4322 SP1
XP Professional 5.1.2600 SP2 Build 2600
Problem Description...
|
by: vul |
last post by:
I have an MDI application with a ListBar on the left side of MDI form. All
child forms are displayed inside of the client area of MDI form.
Now I need to display a third form from a child and...
|
by: Studlyami |
last post by:
I have form1 and form2. I want form2 to be a child of form1 so that when i set its location it will be drawn in relation to its parent.
EX:
Form2Object.Location = new point (0,0)
would put...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |