473,486 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MDI Form Question

Hi,

I have an MDI form and i want to use the background to display data
relevant to the application. Basically its just a load of labels in
groupboxes. It works except the groupboxes sit onto of all the MDI
children. I have tried playing with TopMost, send to back etc etc but
no matter what i do I cant get the forms in front of the groupboxes. :(

Any ideas?
Thanks Fred

Jun 25 '06 #1
7 2766
Fred,

I don't know if others understand your problem direct. What background are
you talking about?

Cor

"Fred" <fr**@fredthomas.co.uk> schreef in bericht
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi,

I have an MDI form and i want to use the background to display data
relevant to the application. Basically its just a load of labels in
groupboxes. It works except the groupboxes sit onto of all the MDI
children. I have tried playing with TopMost, send to back etc etc but
no matter what i do I cant get the forms in front of the groupboxes. :(

Any ideas?
Thanks Fred

Jun 25 '06 #2
On 24 Jun 2006 17:31:26 -0700, "Fred" <fr**@fredthomas.co.uk> wrote:
Hi,

I have an MDI form and i want to use the background to display data
relevant to the application. Basically its just a load of labels in
groupboxes. It works except the groupboxes sit onto of all the MDI
children. I have tried playing with TopMost, send to back etc etc but
no matter what i do I cant get the forms in front of the groupboxes. :(

Any ideas?
Thanks Fred


For all practical purposes, it's not possible to display a control
behind ChildForm(s) in the MDIForm client area.

The only practical client "background" is with the BackgroundImage
Property.

Gene
Jun 25 '06 #3
Hi Cor,

Thanks for replying.

The background I am talking about is this:

Imagine you have an MDI container window open with no other open forms
and the MDI container is maximised. You will have a whole window with
nothing in it. Its that I want to use.

In VB6 it would not let you put a label (or most other controls)
directly on the MDI parent but VB.NET does. In VB 6 I got round this
by creating a MDI Child that sat on the parent background and I set it
to always be behind all other forms using zorder. As VB.NET allows me
to put label directly onto the MDI container I was hoping I would be
able to set all the controls to be behind any open forms.

Does that make sense?!?

Thanks

Fred

Cor Ligthert [MVP] wrote:
Fred,

I don't know if others understand your problem direct. What background are
you talking about?

Cor

"Fred" <fr**@fredthomas.co.uk> schreef in bericht
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi,

I have an MDI form and i want to use the background to display data
relevant to the application. Basically its just a load of labels in
groupboxes. It works except the groupboxes sit onto of all the MDI
children. I have tried playing with TopMost, send to back etc etc but
no matter what i do I cant get the forms in front of the groupboxes. :(

Any ideas?
Thanks Fred


Jun 25 '06 #4
Hi Gene,

Thanks for the reply.

So I guess I will have to do the work around I used with VB 6 (see my
other post)?

Thanks

Fred

gene kelley wrote:
On 24 Jun 2006 17:31:26 -0700, "Fred" <fr**@fredthomas.co.uk> wrote:
Hi,

I have an MDI form and i want to use the background to display data
relevant to the application. Basically its just a load of labels in
groupboxes. It works except the groupboxes sit onto of all the MDI
children. I have tried playing with TopMost, send to back etc etc but
no matter what i do I cant get the forms in front of the groupboxes. :(

Any ideas?
Thanks Fred


For all practical purposes, it's not possible to display a control
behind ChildForm(s) in the MDIForm client area.

The only practical client "background" is with the BackgroundImage
Property.

Gene


Jun 25 '06 #5
Hi Fred,

Did you try to set a panel (docked full) on your form and hide that if you
want to show the MDI container and visa versa?

Cor

"Fred" <fr**@fredthomas.co.uk> schreef in bericht
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi Cor,

Thanks for replying.

The background I am talking about is this:

Imagine you have an MDI container window open with no other open forms
and the MDI container is maximised. You will have a whole window with
nothing in it. Its that I want to use.

In VB6 it would not let you put a label (or most other controls)
directly on the MDI parent but VB.NET does. In VB 6 I got round this
by creating a MDI Child that sat on the parent background and I set it
to always be behind all other forms using zorder. As VB.NET allows me
to put label directly onto the MDI container I was hoping I would be
able to set all the controls to be behind any open forms.

Does that make sense?!?

Thanks

Fred

Cor Ligthert [MVP] wrote:
Fred,

I don't know if others understand your problem direct. What background
are
you talking about?

Cor

"Fred" <fr**@fredthomas.co.uk> schreef in bericht
news:11**********************@m73g2000cwd.googlegr oups.com...
> Hi,
>
> I have an MDI form and i want to use the background to display data
> relevant to the application. Basically its just a load of labels in
> groupboxes. It works except the groupboxes sit onto of all the MDI
> children. I have tried playing with TopMost, send to back etc etc but
> no matter what i do I cant get the forms in front of the groupboxes. :(
>
> Any ideas?
>
>
> Thanks Fred
>

Jun 25 '06 #6
Hello, Fred,

You can do what you want by putting the controls on the "MDIClient".
This doesn't show up as an available control within the intelli-sense of
the MDI form, but you can find it by iterating through the controls on
the MDI form and comparing the TypeOf each to MdiCLient.

Private WithEvents MDI_Frame As MdiClient

For Each CurrentItem As Control In Me.Controls
If (TypeOf CurrentItem Is MdiClient) Then
MDI_Frame = DirectCast(CurrentItem, MdiClient)
Exit For
End If
Next CurrentItem

Cheers,
Randy
Fred wrote:
Hi,

I have an MDI form and i want to use the background to display data
relevant to the application. Basically its just a load of labels in
groupboxes. It works except the groupboxes sit onto of all the MDI
children. I have tried playing with TopMost, send to back etc etc but
no matter what i do I cant get the forms in front of the groupboxes. :(

Any ideas?
Thanks Fred

Jun 25 '06 #7
Im running into a simillar problem.

Just wondering if you did come up with a solution ?

I too want to put some background "objects" like pictures and stuff on the
back wall of the MDI form.

Just wondering if you scrapped it, or did come up with a solution.

Thanks

Miro

"Fred" <fr**@fredthomas.co.ukwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi Gene,

Thanks for the reply.

So I guess I will have to do the work around I used with VB 6 (see my
other post)?

Thanks

Fred

gene kelley wrote:
>On 24 Jun 2006 17:31:26 -0700, "Fred" <fr**@fredthomas.co.ukwrote:
>Hi,

I have an MDI form and i want to use the background to display data
relevant to the application. Basically its just a load of labels in
groupboxes. It works except the groupboxes sit onto of all the MDI
children. I have tried playing with TopMost, send to back etc etc but
no matter what i do I cant get the forms in front of the groupboxes. :(

Any ideas?
Thanks Fred

For all practical purposes, it's not possible to display a control
behind ChildForm(s) in the MDIForm client area.

The only practical client "background" is with the BackgroundImage
Property.

Gene

Sep 21 '06 #8

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

Similar topics

16
2854
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the...
25
10162
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
11
18799
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
15
5058
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to...
3
2091
by: Kaur | last post by:
Hi, I would appriceate any help to correct the code error that I am getting for the onclick event of a cmd button. I have two forms. Main Form "frmQuestion" and form 2 "SfrmQuestion"....
27
4675
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
1
2617
by: MrHelpMe | last post by:
Hello experts, I need a hand. On my asp submit page I have the following code: for i = 1 to 5 ' 5 question form' Question = Request.Form("Q" & i) Answer = Request.Form("A" & i) Comment ...
26
2780
by: Jerim79 | last post by:
I need to create a form that takes a number that the user enters, and duplicates a question the number of times the user entered. For instance, if the customer enters 5 on the first page, when...
6
4843
by: Greg Strong | last post by:
Hello All, Is is possible to use an ADO recordset to populate an unbound continuous Subform? I've done some Googling without much luck, so this maybe impossible, but let me try to explain...
6
1857
by: smk17 | last post by:
I've spent the last few minutes searching for this question and I found an answer, but it wasn't quite what the client wanted. I have a simple online form where the user needs to fill out five...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4863
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3066
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.