Workaround: set the RadRibbonFormBehavior1.AllowTheming property of the form to false public class RadForm1 { public RadForm1() { InitializeComponent(); this.RadRibbonFormBehavior1.AllowTheming = false; } }
To reproduce: - Create a RadForm with a public label in it. - Inherit the new form and change the label text. - Open the second form at design time - the file status is changed to modified.
To reproduce: public Form1() { InitializeComponent(); RadMessageBox.Instance.AutoSize = true; } private void radButton1_Click(object sender, EventArgs e) { string msg = string.Format("Test", (sender as RadButton).Name); RadMessageBox.Show(msg, "Error"); } Note that the size of RadMessageBox is adjusted automatically to display the whole content. Hence, it is not necessary to set the RadMessageBox.Instance.AutoSize property to true.
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: 1. Add a RadForm with a RadButton and a RadGridView. 2. Use the following code snippet: public Form1() { InitializeComponent(); this.AutoScroll = true; this.radGridView1.Location = new Point(10, 500); } 3. Please refer to the attached gif file. Workaround: Use RadScrollablePanel and dock it inside the form.
For the time being to show the grid I would recommend you to use an empty RadStatusStrip.
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: 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(); } }
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: private void radButton1_Click(object sender, EventArgs e) { Application.Exit(); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { RadMessageBox.Show("Do you want to exit?", "Confirmation", MessageBoxButtons.YesNo); } Workaround: Show the RadMessageBox first and then call the Application.Exit method according to the DialogResult. DECLINED: When Application.Exit() is called it iterates through all forms and for each of them calls the FormClosing event. Currently the RadMessageBox is shown in a new form. So in this case during the iterating forms collection a new form is added and this causes the exception "Collection was modified; enumeration operation may not execute.". This is expected behavior and there are two possible solutions to prevent application from throwing exception: - Use this.Close(); to close the application. - Make your checks, show RadMessageBox and after that, if needed call Application.Exit();
Please refer to the attached screenshot. Workaround: use a RadForm without RadRibbonFormBehavior and hide the FormElement.TitleBar.
When the form border style is set to none the form still has minimum width.
To reproduce: Create a RadForm and use the following code: public Form1() { InitializeComponent(); var theme = new Telerik.WinControls.Themes.Windows7Theme(); ThemeResolutionService.ApplicationThemeName = theme.ThemeName;// "Windows7"; this.AllowTheming = false; } Start the application on Windows 7, you will see that the close/minimize/maximize buttons cannot be clicked. Workaround: Do not set the AllowTheming property or set it to true
To reproduce: Show RadMessageBox as follows: RadMessageBox.Show(this, "מסר כלשהו", "Caption", MessageBoxButtons.OKCancel, RadMessageIcon.Error, MessageBoxDefaultButton.Button1, RightToLeft.Yes, "מסר2 כלשהו"); Open the details button and you will see that the text is כלשהו מסר2
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; }
To reproduce: 1. Open a RadForm 2. Maximize the form. 3. Restore the form. Then we can see odd line on the bottom of title bar / top of the form. If you resize the form (make it bigger), new visible areas of form doesn't contain this weird line. Workaround: protected override void WndProc(ref Message m) { FormWindowState currentWindowState = this.WindowState; base.WndProc(ref m); if (currentWindowState == FormWindowState.Maximized && this.WindowState== FormWindowState.Normal) { this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable; } }
Workaround: use RadRibbonForm instead or set minimum and maximum size