Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB.net get right custom task pane above bottom one

Posted on 2012-04-01
4
Medium Priority
?
288 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:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Murray Brown
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 2000 total points
ID: 37802163
0
 

Author Closing Comment

by:Murray Brown
ID: 37803511
thanks very much
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

721 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