473,383 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Position MDI child at lower right corner of MDI parent

Tom
I have a small window that I want positioned at the lower right of an open
MDI window. I know how to size it and place it (via .Left and .Top during
the form load event) but what I can't figure out is how to find the MDI's
inner window height/width. In VB6 we used ScaleHeight and ScaleWidth, but
there doesn't seem to be anything like this available for VB.NET.

Can anyone show me the code to place a child window in the lower right
corner of an open MDI parent? Thanks in advance.

Tom
Nov 20 '05 #1
3 3212
Hi Tom

You can use the following to get the internal dimensions of a form

MyForm.ClientSize

HTH

Charles
"Tom" <to*@nospam.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
I have a small window that I want positioned at the lower right of an open
MDI window. I know how to size it and place it (via .Left and .Top during
the form load event) but what I can't figure out is how to find the MDI's
inner window height/width. In VB6 we used ScaleHeight and ScaleWidth, but
there doesn't seem to be anything like this available for VB.NET.

Can anyone show me the code to place a child window in the lower right
corner of an open MDI parent? Thanks in advance.

Tom

Nov 20 '05 #2
Sorry to hijack the thread but I was just about to post on the same subject regading the inner dimensions of the mdi. However, does this take into account any toolbars on the mdi? I basically need a form to fill the whole mdi area but without being maximised, the child form would also have to have a borderstyle to allow it to be minimised

Any suggestions on setting the child form size

Thank
Steve
Nov 20 '05 #3
The documentation isn't clear, so I suggest you experiment a bit. The
ClientSize does exclude the title bar, but may include any toolbars.

HTH

Charles
"Steve S" <an*******@discussions.microsoft.com> wrote in message
news:8E**********************************@microsof t.com...
Sorry to hijack the thread but I was just about to post on the same subject regading the inner dimensions of the mdi. However, does this take
into account any toolbars on the mdi? I basically need a form to fill the
whole mdi area but without being maximised, the child form would also have
to have a borderstyle to allow it to be minimised.
Any suggestions on setting the child form size?

Thanks
Steve

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Zenobia | last post by:
Hello folks, Is it possible to position an item within a <td> element? For instance see below. The table has multiple rows, one for each database record. Each row has 3 hrefs associated with it...
3
by: Markus Ernst | last post by:
Hello Reading the follwing document: http://www.w3.org/TR/WD-positioning-970131#In-flow it seems very clear that position:relative should be relative to the parent element. So in the following...
2
by: jb61264 | last post by:
Is it possible to refresh a parent browser window when a "child" browser window has been closed using the button in the upper right corner of the browser? When I refer to child window, I mean...
1
by: Jon Pope | last post by:
I've got an MDI Parent which hosts several child forms. When the application closes (either through a File|Exit call or by clicking on the "X" in the upper right corner), I check to see if any of...
1
by: Rob R. Ainscough | last post by:
I'm at a new level of frustration just trying to get my controls to line up and stay in place. I'm using a MultiView containing 4 views - some views have Panels. I can't use absolution position...
2
by: Rich | last post by:
Greetings. I have a child form inside an MID parent form. The child form is wider than the MID parent form. The child form contains a number of textboxes which are positioned from left to...
7
by: Paul Wake | last post by:
I'm missing something regarding positioning background images. It's probably obvious, and I hope someone here will note it for me. I'm trying to do something like the complex spiral thing, only...
4
by: psbasha | last post by:
I would like to create a Parent and Child Dialog in Tkinter. Parent Dialog will be having have the Combo Box with Geometry Selection Parent Dialog : ------------------- - Point - Line -...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
1
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...
0
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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...
0
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
0
BarryA
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.