Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

MDI child title bar, control box and minimize/maximize/close butto

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gwenda - 20 Dec 2004 20:29 GMT
HI,
I have and application with an outlook-style menu on the left which open an
MDI child on the right. The MDI child in opened maximized.
The problems are:
1. The MDI child also add additional gray title bar below the parent title
bar. (When it apears it "pushes" the left toolbar down, make it a bit
shorter).
2. This title bar also contains a default application icon on the left
3. The minimize, maximize and close buttons apears in gray on the right when
the user click over their supposed location. This is despite those lines in
the child form:
this.MaximizeBox = false;
this.MinimizeBox = false;
this.ControlBox = false;

I'm using .Net framework 1.1 running on XP professional SP2 and the
application is using UIPAB 2.0
The question is:
1. How can I get rid of the MDI child title bar, the icon and the
minimize/maximize/close buttons?
2. If I can't get rid of it altogether, there must be a way at-least to
remove the icon and the buttons from the title bar and prevent the title bar
from pushing down the toolbar.

Thanks,
Gwenda
"Jeffrey Tan[MSFT]" - 21 Dec 2004 03:55 GMT
Hi Gwenda,

Based on my understanding, you want to disable the Mdi child form's
Maximize and Minimize box and the gray titlebar.

Actually, we may set the child form's FormBorderStyle to
FormBorderStyle.None to get rid of the caption titlebar. Doing like this:
private void Form1_Load(object sender, System.EventArgs e)
{
    Form2 frm = new Form2();
    frm.MdiParent = this;
    frm.FormBorderStyle = FormBorderStyle.None;
    frm.ControlBox = false;
    frm.MinimizeBox = false;
    frm.MaximizeBox = false;
    frm.Show();
    frm.Dock = DockStyle.Fill;
}
It works well on my side.
=================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Khurramsk - 21 Dec 2004 09:14 GMT
> Hi Gwenda,
>
[quoted text clipped - 16 lines]
> It works well on my side.
> =================================================
I tried it the way you have mentioned but it gives me flickering. i still
see the borders of the child form momentarily and then it vanishes just
giving a flicker which looks very awkward.

is there anyway to get rid of this flicker?

> Thank you for your patience and cooperation. If you have any questions or
> concerns, please feel free to post it in the group. I am standing by to be
[quoted text clipped - 5 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 22 Dec 2004 05:49 GMT
Hi Gwenda,

Thanks for your feedback!

I am not sure what other thing in your project causes the MDI child
flickering, actually it works well on my side. If you create a sample empty
MDI container form, just put this simple code snippet does the flicker
occurs?

private void Form1_Load(object sender, System.EventArgs e)
{
    Form frm = new Form();
    frm.MdiParent = this;
    frm.FormBorderStyle = FormBorderStyle.None;
    frm.ControlBox = false;
    frm.MinimizeBox = false;
    frm.MaximizeBox = false;
    frm.Show();
    frm.Dock = DockStyle.Fill;
}

I suggest you paste some code snippet for us to reproduce out your flicker
issue, then we can reproduce out this issue and can help you better. Thanks
======================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

"Jeffrey Tan[MSFT]" - 28 Dec 2004 06:14 GMT
Hi Gwenda,

Have you tried my suggestion? Have you succeeded create the reproduce
sample project? Please feel free to tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.