Solved

VB.net get right custom task pane above bottom one

Posted on 2012-04-01
4
286 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 500 total points
ID: 37802163
0
 

Author Closing Comment

by:Murray Brown
ID: 37803511
thanks very much
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

636 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