Open floating Window

2 posts, 0 answers
  1. Brian
    Brian avatar
    24 posts
    Member since:
    Apr 2008

    Posted 27 Nov 2015 Link to this post

    Hi,

    Is it possible to add a floating window to RadDock without docking the form as first step. I am using the following code:

          Dim h As HostWindow = RadDock.DockControl(New MyForm(), DockPosition.Fill, DockType.Document)

          h.DefaultFloatingSize = New Size(800, 600)
          h.DockState = DockState.Floating

          h.Select()

    The problem is, that this causes a lot of flickering and rearranging of the existing docked windows.

    When added with Dockposition.Fill the new window will get focus. When floated the window in focus when the operation started may be hidden behind another window. Selecting the original window causes flickering between windows.

    /Brian 

     

     

     

     

  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 01 Dec 2015 Link to this post

    Hello Brian,

    Thank you for writing.

    Please have a look at the following code snippet demonstrating how to float directly a HostWindow:
    Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click
        Dim f As New Form()
        Dim h As HostWindow = New HostWindow(f)
        h.DefaultFloatingSize = New Size(800, 600)
        f.Visible = False
        RadDock1.FloatWindow(h)
    End Sub

    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top