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


    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


    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.






  2. Dess
    Dess avatar
    1560 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
    End Sub

    I hope this information helps. Should you have further questions I would be glad to help.
    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. DevCraft banner
Back to Top