Solved

Adding labels and textboxes on a mdi parent form

Posted on 2004-10-06
6
1,922 Views
Last Modified: 2012-05-05
Hi,

I'm trying to add labels, textboxes and other controls from the toolbox on the MDI Parent form.

Yes, I can add them... BUT the problem is when I open a child form, these control (that are directly on the parent form), seem to be on top all other child forms.

How can I prevent this? I really want to put some controls on the mdi form....

Please show me a way to how put controls on the mdi form  without having these controls appear on top of other child forms.

thank you.
Sukhdev.
0
Comment
Question by:sukhdev
  • 3
  • 2
6 Comments
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12235906
Sorry you can't, this is standard behaviour.

There is a way to put an image on the background but no controls.
0
 

Author Comment

by:sukhdev
ID: 12236003
hmm... actually I just found out that we cannot add control to the MDI Parent.
yeah i know about the background color.... did that already.


Anyway, maybe there's another way of what I want to accomplish . Please read on.

MyCase:
I'm creating an window application in VB.NET.... now when my application opens, Instead of displays just the Gray blank screen I want to show some text in that area.

After realizing the above limitations of mdi parent, what i did I was....... I opened another form and maximize it when the MDI parent on load. I've been able to maximize this child (will refer it to background form) form, without showing any control box also. So in this way... it seems that the controls appear on the MDI parent form.


Now my problem:
I have 3 problems:

1. I have created a Window Menu, with MdiList set to TRUE.
Now what happens is when the background form gets loaded, I see under the Window menu that a number "1" with a check mark menuitem is added to it.

Need to remove this, so that when other forms also open, there's no listing for this background form under the window menu.

2. There's yet another problem. Now when other child forms are opened, and if I restore them... meaning not maximized, then the background form also gets restored... not maximized.

3. When pressing Cascade , Tile Horizontal or Tile Vertical, I want the background to be unaffected... that is always remain in the background below all other forms.

It seems that the difficulty level of this question has increased.... so I think I'll increase it from 75 to 100. In fact i don't mind increasing it further, it cirsumstances are that way.

I just want to be fair.

Thank you so much.
Sukhdev.
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12236115
Hi Sukhdev,

Sorry again, you can not do that in a MDI project, Child forms cascade the windowsstate.
The same goes for the standard mdilist. If you do not want to list a certain child window, than you have to build your own list and not use the one provided.

not good news, is it.

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:sukhdev
ID: 12236189
really bad luck....

ok... one last way out....
I think i'll use a background image on the mdi parent... atleast this way I'll get some text up there....

however, one problem... if the image is smaller than the form it tiles...

can i make it not tile... always center.

hoping for a good news....
thanks.
Sukhdev.
0
 
LVL 25

Accepted Solution

by:
RonaldBiemans earned 60 total points
ID: 12236637
Hi Sukhdev,

Even that is hard, look at this website on how to do that

http://vbaccelerator.com/home/NET/Code/Libraries/Windows/MDI_Client_Area_Painting/article.asp
0
 
LVL 3

Assisted Solution

by:eekj
eekj earned 40 total points
ID: 12246763
>I really want to put some controls on the mdi form...
Add a splitter and dock it to the top, bottom, left or right then put your controls on a panel on that.

Or maybe Im not reading your question properly.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question