Setting the Selected Document Pane

2 posts, 0 answers
  1. fgalarraga
    fgalarraga avatar
    18 posts
    Member since:
    May 2007

    Posted 17 Jun 2007 Link to this post

    How do you call form using the docking manager and set the select Document Pane.

    I tried this code but it does not set the correct focus to the Document Pane I am looking for.

    Thank you!

        Private Sub RadButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton2.Click
            Dim frmShowSearch As DialogResult
            Dim frmSearch As New Search
            frmShowSearch = frmSearch.ShowDialog()
        End Sub
  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 18 Jun 2007 Link to this post

    Hello Frank,

    you can use the Shown event of your search form. In the event handler call documentPane2.Activate(). The form must be loaded and visible before activating any IDockable item. Your search form will be only created and shown:

    Private Sub RadButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton2.Click 
        Dim frmShowSearch As DialogResult 
        Dim frmSearch As New Search 
        frmShowSearch = frmSearch.ShowDialog() 
    End Sub  

    FYI, we have improved the Activation/Deactivation behavior of the DockingManager quite a bit for SP2. It will be available for download early next week.

    Sincerely yours,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top