Setting the ShowIcon to false hides the icon. You then decide to show the icon again, and you set ShowIcon back to true. However, the icon does not appear again.
When setting an icon to RadForm, it should be resized automatically.
FIX. RadRibbonForm - ApplicationButtonElement and QuickAccessToolBar are cut off when Aero if off and the form is maximized
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.
Steps to reproduce: 1. Add a RadPropertyGrid to a form and subscribe for the PropertyValidating event 2. In the event handler show a RadMessageBox Run the project and change a property. Try to save the value and you will see an exception.
After each call to the Show method of RadMessageBox, the message box form is disposed. This causes each new call to Instance (or Show which internally calls Instance) to create a new instance of a message box form, loosing any user settings.
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; }
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
Workaround: ((RadFormControlBase)this).MinimumSize = new Size(350, 350); ((RadFormControlBase)this).MaximumSize = new Size(350, 350);
RadRibbonForm back stage button is missplaced when in maximized state with office2010SilverTheme Workarouond: Set the margin when the window is set to maximize. void Form1_Resize(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Maximized) { this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Margin = new Padding(3, 35, 3, 0); } else { this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Margin = new Padding(3, 33, 3, 0); } }
To reproduce: - Set RadForm.FormBorderStyle to FixedDialog - Set some Icon to the form - Run and the icon is not visible With the standard form, the icon is visible. Workaround: use FormBorderStyle = FixedSingle
Form command buttons incorrectly become visible in the following scenario: 1. Create a new Form. 2. Make the Form inherit from the RadRibbonForm class, or use the RadRibbonForm behavior. 3. Launch the application to display the new Form. 4. Click a few pixels below the Close, Maximize or Minimize buttons. 5. White buttons will appear with the same functionality as the Close, Maximize and Minimize buttons.
When you are navigating repeatedly between the buttons in RadMessageBox using the arrow keys, at one of the steps none of the buttons is focused.
Create a custom theme starting from Aqua theme. Change the Font for RadLabelElement-TextPrimitive to "Microsoft Sans Serif, 10pt". Save the theme and apply it to the entire application. Show several times a RadMessageBox with long text. The first time the RadMessageBox is sized correcly to its content. Each next showing, cuts off the text. Workaround: the possible workaround that I can suggest is to dispose the RadMessageBox instance after showing it: Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click RadMessageBox.Show(Me, "If you have some veeeeery long sample text, the messagebox " & _ "should be resized according to its content.", "Caption", MessageBoxButtons.OK, My.Resources.image) RadMessageBox.Instance.Dispose() End Sub
Add the ability to show the control where the IWin32Window owner has different handle.
To reproduce: -Set RTL via the insane: RadMessageBox.Instance.RightToLeft = RightToLeft.Yes; - You will notice that layout is not changed when the messagebox is shown. Worlaround: - Use the RadMessageBox show method with the following parameters: RadMessageBox.Show(this, "test", "caption", MessageBoxButtons.OKCancel, icon, MessageBoxDefaultButton.Button1, RightToLeft.Yes);
If RadForm is an MDI child and it initially appears as Maximized, there is some space left between the bottom border of the child form and the bottom border of the parent form. In order to reprodue the issue, you should also have a RadMenu docked to top that has size bigger than its default size.
When HTML-formatted text is displayed in RadMessageBox, it is cut off on the right.
When the form border style is set to none the form still has minimum width.