Howdy!
I'm trying to build an MDI application.
I've added a 'toolbox' navigation control down the left inside of the parent
form.
Now I need to change the child forms so they do not hide behind the toolbox
when maximized.
I am trying to use .MaximizedBounds but its bugged. =(
Do any of my fantastic peers have any suggestions?
To better understand the issue, do me a favor and try the following:
STEP 1: Make a new project
STEP 2: Add Form1 and Form2
STEP 3: Add this code to Form1:
Private Sub Form1_Load()
Me.IsMdiConatiner = True
Dim Child1 as new Form2
Child1.Visible = True
Dim Child2 as New Form2
Child2.MIDParent = Me
Child2.Visible = True
End Sub
STEP 4: Add this code to Form2:
Private Sub Form2_Load()
Me.MaximizedBounds = New System.Drawing.Rectangle (25, 25, 200, 200)
End Sub
STEP 5: Run it
Notice how Child1 will comply with the MaximizedBounds setting.
Notice how Child2 ignores the MaximizedBounds setting. 3 2448
Bumping for great justice
"imnotamib" wrote: Howdy!
I'm trying to build an MDI application. I've added a 'toolbox' navigation control down the left inside of the parent form. Now I need to change the child forms so they do not hide behind the toolbox when maximized. I am trying to use .MaximizedBounds but its bugged. =( Do any of my fantastic peers have any suggestions?
To better understand the issue, do me a favor and try the following:
STEP 1: Make a new project
STEP 2: Add Form1 and Form2
STEP 3: Add this code to Form1: Private Sub Form1_Load() Me.IsMdiConatiner = True Dim Child1 as new Form2 Child1.Visible = True Dim Child2 as New Form2 Child2.MIDParent = Me Child2.Visible = True End Sub
STEP 4: Add this code to Form2: Private Sub Form2_Load() Me.MaximizedBounds = New System.Drawing.Rectangle (25, 25, 200, 200) End Sub
STEP 5: Run it
Notice how Child1 will comply with the MaximizedBounds setting. Notice how Child2 ignores the MaximizedBounds setting.
"imnotamib" <im*******@discussions.microsoft.com> schrieb Howdy!
I'm trying to build an MDI application. I've added a 'toolbox' navigation control down the left inside of the parent form. Now I need to change the child forms so they do not hide behind the toolbox when maximized. I am trying to use .MaximizedBounds but its bugged. =( Do any of my fantastic peers have any suggestions?
To better understand the issue, do me a favor and try the following:
STEP 1: Make a new project
STEP 2: Add Form1 and Form2
STEP 3: Add this code to Form1: Private Sub Form1_Load() Me.IsMdiConatiner = True Dim Child1 as new Form2 Child1.Visible = True Dim Child2 as New Form2 Child2.MIDParent = Me Child2.Visible = True End Sub
STEP 4: Add this code to Form2: Private Sub Form2_Load() Me.MaximizedBounds = New System.Drawing.Rectangle (25, 25, 200, 200) End Sub
STEP 5: Run it
Notice how Child1 will comply with the MaximizedBounds setting. Notice how Child2 ignores the MaximizedBounds setting.
Right, because it's an MDI child. It's maximized to the size of the
MDIContainer.
Armin
"Armin Zingler" <az*******@freenet.de> schrieb "imnotamib" <im*******@discussions.microsoft.com> schrieb Howdy!
I'm trying to build an MDI application. I've added a 'toolbox' navigation control down the left inside of the parent form. Now I need to change the child forms so they do not hide behind the toolbox when maximized. I am trying to use .MaximizedBounds but its bugged. =( Do any of my fantastic peers have any suggestions?
To better understand the issue, do me a favor and try the following:
STEP 1: Make a new project
STEP 2: Add Form1 and Form2
STEP 3: Add this code to Form1: Private Sub Form1_Load() Me.IsMdiConatiner = True Dim Child1 as new Form2 Child1.Visible = True Dim Child2 as New Form2 Child2.MIDParent = Me Child2.Visible = True End Sub
STEP 4: Add this code to Form2: Private Sub Form2_Load() Me.MaximizedBounds = New System.Drawing.Rectangle (25, 25, 200, 200) End Sub
STEP 5: Run it
Notice how Child1 will comply with the MaximizedBounds setting. Notice how Child2 ignores the MaximizedBounds setting. Right, because it's an MDI child. It's maximized to the size of the MDIContainer.
I forgot to say:
If you dock your navigation control within the MDI parent, the child is not
hidden behind the control, even if it is maximized.
Armin This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: yin heng |
last post by:
I am using c#2005 Beta to write a Mdi form, but I can't find the MDI
properties as: IsMdiChild or MdiParent.
I am a beginner of c#, is it the difference between .net 2003 edition and
2005 beta?...
|
by: Dursun |
last post by:
I need to call a subroutine (CreateNewDoc()) in FormA from
within FormB based on the user action in FormB.
Let FormA be an MDIForm and let FormB be its MDIChild
form (during the creation of FormB,...
|
by: Paul Mars |
last post by:
FormParent load opens FormChildA.
FormChildA btn click opens FormChildB.
(FormChildA and FormChildB are both children of FormParent)
(FormChildA and FormChildB are different forms)
Problem:...
|
by: Ben dotNet |
last post by:
FormA is the mdiParent
FormB is the child
FormC is the Form that is used to open FormB
How do I open FormB from FormC (that is not a child) so that it it's
mdiParent is FormA?
Thanks,
--Ben
|
by: Roy |
last post by:
Hi all,
I'm opening a mdichild (Form2) within another mdichild (Form1). In Form1 I
have:
Form2.MdiParent = Me.MdiParent 'No problem here
....
....
If Form2.ShowDialog = DialogResult.OK Then 'I...
|
by: Rob |
last post by:
Hello,
I can easily send data types from any MDI parent to an MDI Child
window using something like MDIChild( i ).ChildSubroutine( i2 ), which
would call the Public subroutine ChildSubroutine in...
|
by: PDP-8E |
last post by:
I'm new to VB.Net 2003 - (2 weeks in) so this MAY be straightforward...
(Things changed since Octal Assembler I see !!!)
I'll try to lay this out in a way that makes sense
I created a...
|
by: thorgal |
last post by:
Hello
Following problem occured:
I have an MdiParent with a Listview. In that listview i have elements like
(x1,x2,x3)
When I click on x1 a subform (mdichild) opens and i can change the...
|
by: kardiss |
last post by:
I am trying to add Meebo's "Pop-out" kinda feature to my application which when a button is pressed in a MdiChild form, it kicks that MdiChild form out of the MdiParent boundary and acts like a SDI...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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: 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...
| |