To reproduce: - Create new project. - Make the default form to inherit RadForm. - Start the application and maximize the form. - You will notice that a few pixels are displayed on the right monitor as well. Workaround: var screen = System.Windows.Forms.Screen.PrimaryScreen.Bounds; this.MaximumSize = new Size(screen.Width, screen.Height); Second Workaround: public Form1() { InitializeComponent(); this.SizeChanged += Form1_SizeChanged; } private void Form1_SizeChanged(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Maximized) { this.Region = null; } }
To reproduce: Create a RadForm set Maxmize/Minimize box to false. Run it and try to drag the form by clicking on where the buttons used to be. Workaround: void MainForm_Load(object sender, EventArgs e) { this.FormElement.TitleBar.MaximizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; this.FormElement.TitleBar.MinimizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; }
There should be an option to show a help button at the titlebar part of RadForm
UPDATED: this is reproducible in a non-MDI scenario is well. Sub New() InitializeComponent() Me.Size = New Size(500, 500) End Sub To reproduce: 1. Add two RadForms - a parent and a child. 2. Set the MinimumSize property of the child form at design time. 3. Use the following code snippet: public partial class ParentForm : RadForm { public ParentForm() { InitializeComponent(); this.IsMdiContainer = true; ChildForm form = new ChildForm(); form.Text = "MDI Child 1"; form.MdiParent = this; form.Size = new System.Drawing.Size(600, 600); form.Show(); } } public partial class ChildForm : Telerik.WinControls.UI.RadForm { public ChildForm() { InitializeComponent(); this.SizeChanged += ChildForm_SizeChanged; } private void ChildForm_SizeChanged(object sender, EventArgs e) { this.Text = "ChildForm " + this.Size.Width + " x " + this.Size.Height; } } When you run the application with version 2015.2 623, you will notice that the child form is loaded with its MinimumSize. However, in the previous version it is loaded with the expected specified Size(600, 600). Workaround: use ShapedForm with titlebar. An alternative solution is to set the RadForm.Size property in the Shown event.
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); }
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); }
To reproduce: - Use the approach described here to localize the form: https://msdn.microsoft.com/en-us/library/y99d1cd3%28v=vs.100%29.aspx?f=255&MSPPError=-2147217396 - Open the resx file in Visual Studio.
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;
If you have a TextBox anchored to Top, Left, Right in a RadForm, the size that this TextBox gets when the form is shown may not be correct. Workaround: set the Dock = Fill setting after adding the controls/toolwindows in the forms
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);
If you have a RadForm that contains a RadTextBox (TextBox), set the WindowsState of this form to Maximized and add this form to an MDI Parent with RadDock which handles the forms, you will notived that you are not able to mouse select the text.
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);
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
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(); } }
QSF Forms&Dialogs Message box - show RadMessageBox when click on the right side of the title bar the popup dialog cannot be dragged.
To reproduce: RadMessageBox.Instance.Font = new Font("Segoe UI", 10); foreach (Control c in RadMessageBox.Instance.Controls) { c.Font = new Font("Segoe UI", 14); } RadMessageBox.SetThemeName("TelerikMetro"); RadMessageBox.Show("test", "test2", MessageBoxButtons.YesNoCancel, RadMessageIcon.Error, MessageBoxDefaultButton.Button2); WORKAROUND: use smaller font size
To reproduce: Create a RadForm and set the property as follows: public Form1() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; } Workaround: Set the ShowIcon property to false: public Form1() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.ShowIcon = false; }
Option to show RadMessageBox in task bar Resolution: You can use the following code snippet show the message box in the taskbar: RadMessageBox.Instance.ShowInTaskbar = true;
To reproduce: Add a RadRibbonBar, associate AcceptButton and CancelButton and subscribe to their events. Run the application press escape and the CancelButton's event should be fired. Press enter - no results. Workaround: protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData) { if (keyData == System.Windows.Forms.Keys.Enter) { this.AcceptButton.PerformClick(); } return base.ProcessCmdKey(ref msg, keyData); } Resolution: The issue is fixed in Telerik`s RadForm and RadRibbonForm. If you use MS Form, this is still not working.