Completed
Last Updated: 03 Oct 2019 11:40 by ADMIN
Release R3 2019 SP1 (LIB 2019.3.1007)
Kashif
Created on: 21 Aug 2019 12:35
Category: Form
Type: Bug Report
1
RadMenu: ControlBox Problem With MDI Child Form

Dear Admins.

I'm developing an application which have Parent (MDI) and some child forms.

Using Telerik UI for WinForms R2 2019 SP1.

Code for Opening the Form.

01.private void MnuItemSuppliers_Click(object sender, EventArgs e)
02.{
03.    if (!IsFormOpen(typeof(frmSupplierList)))
04.    {
05.        CloseChildForm();
06.        frmSupplierList m_frmListSupplier = new frmSupplierList
07.        {
08.            Width = this.Width,
09.            Height = this.Height,
10.            MdiParent = this,
11.            MaximizeBox = false,
12.            MinimizeBox = false,
13.            ControlBox = false,
14.            WindowState = FormWindowState.Maximized
15.        };
16.        m_frmListSupplier.Show();
17.    }
18.}

 

But Still i can see the ControlBox and Minimize and Maximize Buttons on the Top right Corner. 

Image Attached.

When i Use the Same Coding and Properties using Standard Windows Forms. It behave like as required.

Please help what is wrong with this.

Attached Files:
2 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 22 Aug 2019 12:36
Hello, Muhammad,  

Note that most of the forum threads are reviewed by Telerik representatives and sometimes we address the questions asked by our customers in the forums as well. However, a post in the forum doesn't guarantee you a response from the Telerik support team. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread. Thank you for your understanding.

As a gesture of good will, we will address this question for you since it would be useful for the community.

According to the provided information, I have prepared a sample project and was able to replicate the visible system buttons when showing MDI child forms at run time. Please refer to the attached gif file. 

I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to hide the system buttons in the menu one by one as follows:

public RadForm1()
{
    InitializeComponent();
    this.IsMdiContainer = true;
      
 
    this.radMenu1.MenuElement.CloseButton.Opacity = 0;
    this.radMenu1.MenuElement.MinimizeButton.Opacity = 0;
    this.radMenu1.MenuElement.MaximizeButton.Opacity = 0;
}

I hope this information helps. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Kashif
Posted on: 21 Aug 2019 12:38

CloseChildForm();

This Function is Used to Close All the Child Forms Currently Opened.