This is a migrated thread and some comments may be shown as answers.

RadForm - Rendering issue when no minimize, maximise or control box

11 Answers 218 Views
Form
This is a migrated thread and some comments may be shown as answers.
Duane
Top achievements
Rank 1
Duane asked on 10 Nov 2010, 10:37 AM
Hi Guys,

I wonder if any one can shed some light on an issue I am having.

I have a form created from the RadForm template (2009 Q2), and if I turn off the ControlBox, MinimiseBox, MaximiseBox and then run the project the form renders with some of the desktop background in the form. If you add any one of these boxes back in the issue goes away. Is this expected behaviour? If so is there anyway around it? So far my only option seems to be leaving the ControlBox in place which the application does not really require.

I have attached a screen shot which shows the purple of my desktop wallpaper peeking through the form,

Thanks in advance.

Best regards,
Duane.

Edited: for spellos

11 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 10 Nov 2010, 10:48 AM
Hi Duane, 

I haven't seen this happen before. I used to use the version of the controls that you are using now, but I am now using the latest version (2010 Q2 914) so I am unable to try this out. 

I'd suggest upgrading to the latest version (though the Q3 version is coming very soon). 

It may also help if you could post your code here. Are you ever suspending the layout for example, or calling any other such methods? 

Let me know and I'll do my best to help
Richard
0
Duane
Top achievements
Rank 1
answered on 10 Nov 2010, 12:29 PM
Hi Richard,

Thank you for your prompt reply.

The only SuspendLayout / ResumeLayout code is in the Designer code file, and that is auto-generated.

The form designer code is:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class LoginTestForm
    Inherits Telerik.WinControls.UI.RadForm
  
    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub
  
    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
  
    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        CType(Me, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'LoginTestForm
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(308, 126)
        Me.ControlBox = False
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "LoginTestForm"
        '
        '
        '
        Me.RootElement.ApplyShapeToControl = True
        Me.RootElement.MinSize = New System.Drawing.Size(150, 38)
        Me.ShowIcon = False
        Me.Text = "LoginTestForm"
        CType(Me, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
  
    End Sub
End Class

The form code is:
Public Class LoginTestForm
  
End Class

Will the upgrade to 2010 version free with our current license, BTW?

Incidentally, I am also having issue where the whole TitleBar on some of the RadForms becomes transparent and only redraws when you click on it...?

Best regards,
Duane.
0
Richard Slade
Top achievements
Rank 2
answered on 10 Nov 2010, 01:00 PM
Hello Duane,

I'm sorry, but I can't replicate your issue. You can check if you can download the latest version by going to Your Products.

Are there no other operations that are happening on the form?

As a temp workaround, you may want to try calling Application.DoEvents() in your form shown event to see if this helps.
Private Sub Form1_Shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown
    Application.DoEvents()
End Sub

Hope this helps, but if you need more advice, just let me know.
Richard
0
Duane
Top achievements
Rank 1
answered on 10 Nov 2010, 01:39 PM
Hi Richard,

The form is empty just to make sure that there is no other possible code affecting the rendering. The "real" form in the application has login controls and appropriate functionality. I wanted to make sure that even a basic empty form behaved the same to rule out any code I had added after affecting the Titlebar render issue.

Adding the "Application.DoEvent()" code stopped the transparency in the Titlebar, but now I get a white rectangle underneath, instead. See new attched image.

I have logged in with the company loggin to check if we have any further versions to download but we only have licences for 2009, it appears.

Best reagrds,
Duane.

0
Richard Slade
Top achievements
Rank 2
answered on 10 Nov 2010, 01:56 PM
Hi Duane, 

Just to check, you have a standard RadForm, with no alterations. I guess it is standard themed to the default theme, and that's it. 

I'm afraid I can't replicate it, though as you know, I'm using the latest version of the controls, but I also cannot remember ever having such an issue when we were using the 2009 version of the controls either. 

If you take the new, blank form on another machine, does it behave the same way? 

I'd advise seeing if your company would buy the upgraded version of the Telerik suite though as there are many enhancements in the new version. 

I'm sorry I can't be of more help on this topic. Let me know if there's anything else I can do to help though. 
Richard
0
Stefan
Telerik team
answered on 15 Nov 2010, 02:44 PM
Hello Duane,

Thank you for writing.

I was not able to recreate the described behavior with Q2 2009 either and I can not think of any reason that might cause this. However, just to make sure that the versions and everything is correct, I would like to kindly ask you to provide me with this sample project by opening a new support ticket. This will allow me to reproduce the described behavior and find appropriate methods for skipping it if such exist.

I am looking forward to your reply.
 
Regards,
Stefan
the Telerik team
See What's New in RadControls for WinForms in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>
0
Duane
Top achievements
Rank 1
answered on 16 Nov 2010, 12:22 PM
Hi Guys,

Thanks for your replies.

@Richard:
Yes the form inherits from "Telerik.WinControls.UI.RadForm", which I assume is a standard RadFrom.
 I don't think upgrading to latest version is going to be a solution for us, due to the size of the application. (I downloaded the latest trial version, and it looks like the elements are nested differently so previous styling we have set caused errors at runtime.

@Stefan:
I will try and get a sample project together, but under very heavy time constraints at the moment!

Best regards,
Duane.
0
Stefan
Telerik team
answered on 19 Nov 2010, 08:50 AM
Hello Duane,

Thank you for writing us back. Feel free to send your project whenever you find it convenient. If you have any other questions, we will be glad to help.

Greetings,
Stefan
the Telerik team
See What's New in RadControls for WinForms in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>
0
Duane
Top achievements
Rank 1
answered on 19 Nov 2010, 02:18 PM
Hi Stefan,

I have thrown together a quick VB project with a form as per the issue. It does resolve when youresize teh form, but after it is painted on the screen and before a user resizes it, it has a transparent panel underneath the TitleBar.

Thank you in advance.

Best regards,
Duane.


Edit: Could not attach a zip file to this post...
0
Richard Slade
Top achievements
Rank 2
answered on 19 Nov 2010, 02:20 PM
Hi Duane,

You should send the project to Telerik via a support ticket. You can attach projets when sending a support ticket.

Hope that helps
Richard
0
Duane
Top achievements
Rank 1
answered on 19 Nov 2010, 02:48 PM
Thanks Richard,

Ticket submitted with project zip file.

Best regards,
Duane.
Tags
Form
Asked by
Duane
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Duane
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or