Completed
Last Updated: 04 May 2016 13:41 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 07 Aug 2014 10:59
Category: Form
Type: Bug Report
0
FIX. RadForm - odd line on the bottom of title bar after restoring from FormWindowState.Maximized to FormWindowState.Normal
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;
    }
}      
0 comments