Completed
Last Updated: 15 Oct 2019 10:26 by ADMIN
Release R3 2019 SP1

The issue exists in Fluent, Material, and Crystal themes.

To reproduce:

Create an MDI application and maximize the child form. 

The child form buttons are not styled. 

Completed
Last Updated: 14 Jun 2016 06:38 by ADMIN
Please refer to the attached sample project.

Workaround: call the Close method in the Shown event.
Completed
Last Updated: 29 Jun 2016 05:49 by ADMIN
How to reproduce:
public partial class Form1 : Form
{
    Timer timer;

    public Form1()
    {
        InitializeComponent();

        timer = new Timer();
        timer.Interval = 1000; 
        timer.Tick += new EventHandler(MyTimer_Tick);
        timer.Start();
    }

    protected override void OnShown(EventArgs e)
    {
        base.OnShown(e);

        RadMessageBox.Show("Shown");
    }

    private void MyTimer_Tick(object sender, EventArgs e)
    {
        RadMessageBox.Show("Form closed");
        this.Close();
    }
}

Workaround: dispose the old instance
private void MyTimer_Tick(object sender, EventArgs e)
{
    RadMessageBox.Instance.Dispose();

    RadMessageBox.Show("Form closed");
    this.Close();
}
Completed
Last Updated: 02 Mar 2018 09:47 by ADMIN
To reproduce:
- Set the icon of the form.
- Set the FormBorderStyle to FixedToolWindow.
- The default icon is displayed in the taskbar.

Workaround:
public RadForm2()
{
    InitializeComponent();
    this.ShowIcon = true;
  
}
protected override void OnShown(EventArgs e)
{
    base.OnShown(e);
    this.FormElement.TitleBar.IconPrimitive.Visibility = ElementVisibility.Collapsed;
}
Completed
Last Updated: 15 Aug 2017 11:03 by ADMIN
Workaround: change all RadForms to inherit the following custom base form
public class RadFormBase : RadForm
{
    protected override void OnLoad(EventArgs e)
    {
        if (this.IsDesignMode)
        {
            this.BackColor = Color.Empty;
        }

        base.OnLoad(e);
    }

    public override Color BackColor
    {
        get
        {
            return this.ElementTree.RootElement.BackColor;
        }
        set
        {
            if (value == Color.Empty)
            {
                this.ElementTree.RootElement.ResetValue(VisualElement.BackColorProperty, ValueResetFlags.Local);
            }
            else
            {
                this.ElementTree.RootElement.BackColor = value;
            }
        }
    }
}
Completed
Last Updated: 11 Jul 2017 13:03 by ADMIN
How to reproduce:
public partial class RadForm1 : RadForm
{
    public RadForm1()
    {
        InitializeComponent();

        this.AllowTheming = false;

        this.FormBorderStyle = FormBorderStyle.FixedSingle;
    }
}

Workaround: 
public partial class RadForm1 : RadForm
{
    public RadForm1()
    {
        InitializeComponent();

        this.AllowTheming = false;

        this.FormBorderStyle = FormBorderStyle.FixedSingle;
    }

    protected override FormControlBehavior InitializeFormBehavior()
    {
        return new MyRadFormBehavior(this, true);
    }
}

public class MyRadFormBehavior : RadFormBehavior
{
    public MyRadFormBehavior(IComponentTreeHandler treeHandler, bool shouldCreateChildren)
        : base(treeHandler, shouldCreateChildren)
    { }

    public override bool HandleWndProc(ref System.Windows.Forms.Message m)
    {
        BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.NonPublic;
        if (m.Msg == NativeMethods.WM_NCHITTEST)
        {
            typeof(RadFormBehavior).GetMethod("OnWMNCHittest", bindingFlags).Invoke(this, new object[] { m });
            return true;
        }

        if (!this.AllowTheming)
        {
            return false;
        }

        return base.HandleWndProc(ref m);
    }
}
Completed
Last Updated: 11 Jul 2017 13:02 by ADMIN
How to reproduce:
Add a StatusStrip to the form and set the FormBorderStyle to FixedSingle, you will notice that the form can be resized using the sizing grip of the status strip

Workaround:
public partial class Form2 : RadForm
{
    public Form2()
    {
        InitializeComponent();

        this.FormBorderStyle = FormBorderStyle.FixedSingle;
    }

    protected override FormControlBehavior InitializeFormBehavior()
    {
        return new CustomRadFormBehavior(this, true);
    }
}

public class CustomRadFormBehavior : RadFormBehavior
{
    public CustomRadFormBehavior(IComponentTreeHandler treeHandler, bool shouldCreateChildren)
        : base(treeHandler, shouldCreateChildren)
    { }

    public override bool HandleWndProc(ref Message m)
    {
        if ((m.Msg) == NativeMethods.WM_NCLBUTTONDOWN)
        {

            Point screenLocation = new Point(m.LParam.ToInt32());
            Point location = this.GetMappedWindowPoint(screenLocation);

            RadElement itemUnderMouse = this.Form.ElementTree.GetElementAtPoint(location);
            MouseEventArgs args = new MouseEventArgs(Control.MouseButtons, 1, location.X, location.Y, 0);

            bool isFixed = false;
            if (this.Form != null &&
                this.Form.FormBorderStyle == FormBorderStyle.Fixed3D ||
                this.Form.FormBorderStyle == FormBorderStyle.FixedDialog ||
                this.Form.FormBorderStyle == FormBorderStyle.FixedSingle ||
                this.Form.FormBorderStyle == FormBorderStyle.FixedToolWindow)
            {
                isFixed = true;
            }

            if (isFixed &&
                itemUnderMouse != null &&
                itemUnderMouse.Enabled &&
                !object.ReferenceEquals(itemUnderMouse, (this.Form.RootElement.Children[0] as RadFormElement).TitleBar))
            {
                return true;
            }
        }

        return base.HandleWndProc(ref m);
    }
}

Completed
Last Updated: 25 Jun 2018 06:46 by Dimitar
To reproduce: Create a RadForm, select a material theme from the ToolBox, and apply the theme to the Form. Set the size of the Form to anything simple like (300, 300) and then save and close out the Form. When you reopen the same Form it will grow to (304, 302).
Please refer to the attached gif file.

Workaround: set the size at run time.
Completed
Last Updated: 29 Nov 2016 11:32 by ADMIN
How to reproduce:
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();

        this.IsMdiContainer = true;
    }

    private void radButton1_Click(object sender, EventArgs e)
    {
        RadForm2 form = new RadForm2();
        form.Text = "MDI Child 1";
        form.MdiParent = this;
        form.ThemeName = "Desert";
        form.Show();
    }
}

public partial class RadForm2 : Telerik.WinControls.UI.RadForm
{
    public RadForm2()
    {
        InitializeComponent();

        this.AllowTheming = false;
    }
}

Workaround: override the ProcessCaptureChangeRequested method in the MDI child form
public partial class RadForm2 : Telerik.WinControls.UI.RadForm
{
    public RadForm2()
    {
        InitializeComponent();

        this.AllowTheming = false;
    }

    protected override bool ProcessCaptureChangeRequested(RadElement element, bool capture)
    {
        if (this.FormElement == null)
        {
            return this.Capture = capture;
        }

        return base.ProcessCaptureChangeRequested(element, capture);
    }
}
Completed
Last Updated: 04 Feb 2016 08:00 by ADMIN
To reproduce:
- Add two buttons and a textbox to a RadForm.
- Set the AcceptButton to be the first button.
- Focus the second button and press Enter

Workaround:
protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData)
{
    if (keyData == System.Windows.Forms.Keys.Enter)
    {
        if (this.ActiveControl is Button && this.ActiveControl != this.AcceptButton)
        {
            ((Button)this.ActiveControl).PerformClick();
            return true;
        }
        
    }

    return base.ProcessCmdKey(ref msg, keyData);
}
Completed
Last Updated: 19 Apr 2016 11:37 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: Form
Type: Bug Report
0
Please refer to the attached project.

Workaround: maximize the form in the Load event.
Completed
Last Updated: 08 Jun 2016 09:54 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: Form
Type: Bug Report
0
To reproduce:

private void radButton1_Click(object sender, EventArgs e)
{ 
    StringBuilder detailsText = new StringBuilder();
    for (int i = 0; i < 10; i++)
    {
        detailsText.AppendLine("Line" + i);
    }
    detailsText.AppendLine("END");

   RadMessageBox.Show("Message", "Caption Text", MessageBoxButtons.AbortRetryIgnore, detailsText.ToString());
}

Workaround: enlarge the details section in order to fit the text: 

 FieldInfo fi = typeof(RadMessageBoxForm).GetField("detailsSectionHeight", BindingFlags.NonPublic| BindingFlags.Instance);
fi.SetValue(RadMessageBox.Instance,200); 
Completed
Last Updated: 20 Mar 2015 13:49 by ADMIN
To reproduce:
public partial class Form1 : RadForm
{
    public Form1()
    {
        InitializeComponent();
        this.IsMdiContainer = true;
    }

    private void radButton1_Click(object sender, EventArgs e)
    {
        RadForm childForm = new RadForm();
      
        childForm.Text = "MDI Child " + DateTime.Now.ToShortTimeString();
        childForm.MdiParent = this;
        childForm.WindowState = FormWindowState.Maximized;
        childForm.Show();
    }
}
Completed
Last Updated: 07 May 2015 14:43 by ADMIN
To reproduce:
- Create blank WinForms RadForm Application.
- Set WindowState property to Maximized.
- Add RadGroupBox to the form. Set equal space on all sides.
- Anchor the group box to all sides.
- Launch application - spacing around outside of group box is incorrect.
-  Restore form to normal size - spacing around group box is incorrect.

Workaround:
radGroupBox1.Dock = DockStyle.Fill;
radGroupBox1.GroupBoxElement.Margin = new Padding(20);
Completed
Last Updated: 16 Nov 2015 16:13 by ADMIN
To reproduce: 
- Start the narrator, open a message box and close it fast.
 
Workaround:
void button_Click(object sender, EventArgs e)
{
    RadMessageBox.Instance.Shown += Instance_Shown;
    RadMessageBox.Show("test");
}

void Instance_Shown(object sender, EventArgs e)
{
    RadMessageBoxForm form = sender as RadMessageBoxForm;

    typeof(RadMessageBoxForm).GetField("accObjectCreated", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue(form, false);
}
Completed
Last Updated: 27 Mar 2015 08:06 by ADMIN
To reproduce: 
1. Use the following code snippet: 
RadMessageBox.Show("RadMessageBox Some message box text", "Caption", MessageBoxButtons.OK, RadMessageIcon.Error);
2. The text is not aligned with the icon
Completed
Last Updated: 24 Jul 2015 10:20 by ADMIN
Broken in Q2 2015

Workaround: get current dpi settings and resize the form
float dpiX = 0;
float dpiY = 0;
Graphics graphics = this.CreateGraphics();
dpiX = graphics.DpiX;
dpiY = graphics.DpiY;

this.Width *= dpiX / 96;
this.Height *= dpiY / 96;
Completed
Last Updated: 20 Jan 2012 11:27 by ADMIN
Steps to reproduce.

1. Add a grid and a button to a form.
2. Set the button as the AcceptButton
3. Add a text column to the grid
4. Run the project, open a cell for edit, hit enter and the button will be clicked closing the form in the process.
Completed
Last Updated: 16 Feb 2012 01:47 by ADMIN
FIX. Pressing Escape does not trigger the Click event of the form's CancelButton.
Completed
Last Updated: 11 May 2015 13:48 by ADMIN
To reproduce:
1.Add a RadButton and on its Click event, show a RadMessageBox.
2.Add a RadDropDownList .
3.Drag several themes from the toolbox and drop them onto the form (e.g. Office2010Black, Office2010Blue, TelerikMetro, Windows8)
4.Use the following code:

public Form1()
{
    InitializeComponent();

    this.radDropDownList1.Items.Add("Office2010Black");
    this.radDropDownList1.Items.Add("Office2010Blue");
    this.radDropDownList1.Items.Add("TelerikMetro");
    this.radDropDownList1.Items.Add("Windows8");

    this.radDropDownList1.SelectedIndexChanged += radDropDownList1_SelectedIndexChanged;
    this.radDropDownList1.SelectedItem = this.radDropDownList1.Items[0];
}

private void radDropDownList1_SelectedIndexChanged(object sender,
    Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
    string itemText = this.radDropDownList1.Items[e.Position].Text;           
    ThemeResolutionService.ApplicationThemeName = itemText;
}

private void radButton1_Click(object sender, EventArgs e)
{
    RadMessageBox.Show("Some message", "Confirmation", MessageBoxButtons.OKCancel);
}

When you select a new item from the RadDropDownList, the theme for the entire application is changed. But when you click the button to show a RadMessageBox, the RadMessageBox has incorrect style for its buttons.

Workaround: set the RadMessageBox.ThemeName before showing it:

RadMessageBox.ThemeName = ThemeResolutionService.ApplicationThemeName;
RadMessageBox.Show("Some message", "Confirmation", MessageBoxButtons.OKCancel);