Solved

VB.net get right custom task pane above bottom one

Posted on 2012-04-01
4
281 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

803 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