Solved

VB.net get right custom task pane above bottom one

Posted on 2012-04-01
4
282 Views
Last Modified: 2012-04-03
Hi. I am using the code at the bottom to load two task panes. My problem is that the bottom task pane is above the right one. Is there a way to get the right task pane above the bottom one?

1

Public Class ThisAddIn


    Private _tpSqlEdit As TpSQLEdit
    Public Shared TpSqlEditCustomTaskPane As Microsoft.Office.Tools.CustomTaskPane 'the Shared means that it can be used outside of this class
    Private oUserControl1 As UserControl1
    Public Shared oRightTaskPane As Microsoft.Office.Tools.CustomTaskPane 'the Shared means that it can be used outside of this class
    'Private taskPaneControl1 As Microsoft.Office.Tools.Custo


    Private Sub ThisAddIn_Startup() Handles Me.Startup
        'Fire the Custom TaskPane

        AddTpSqlEdit()
        AddSideTaskPane()


    End Sub

    Private Sub ThisAddIn_Shutdown() Handles Me.Shutdown

    End Sub

    'Create the Custom TaskPane and Dock Bottom
    'You must Add your Control here
    Private Sub AddTpSqlEdit()
        _tpSqlEdit = New TpSQLEdit()
        TpSqlEditCustomTaskPane = CustomTaskPanes.Add(_tpSqlEdit, "SELECT Elements")
        TpSqlEditCustomTaskPane.DockPosition = Office.MsoCTPDockPosition.msoCTPDockPositionBottom
        'Show TaskPane
        TpSqlEditCustomTaskPane.Visible = True

    End Sub

    Public Sub AddSideTaskPane()
        oUserControl1 = New UserControl1
        oRightTaskPane = CustomTaskPanes.Add(oUserControl1, "FROM Elements")
        oRightTaskPane.DockPosition = Office.MsoCTPDockPosition.msoCTPDockPositionRight
        oRightTaskPane.Width = 390

        'Show TaskPane
        oRightTaskPane.Visible = True
 
    End Sub




End Class
0
Comment
Question by:murbro
  • 2
  • 2
4 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37795466
What happens if you change the sequence of method calls from

        AddTpSqlEdit()
        AddSideTaskPane()

to

        AddSideTaskPane()
        AddTpSqlEdit()
0
 

Author Comment

by:murbro
ID: 37797826
Hi

I tried that before I posted this. It unfortunately didn't change anything.

Thanks
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37802163
0
 

Author Closing Comment

by:murbro
ID: 37803511
thanks very much
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question