Print Page | Close Window

.net Statusbar helper function question

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11840
Printed Date: 06 May 2024 at 12:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: .net Statusbar helper function question
Posted By: tobi
Subject: .net Statusbar helper function question
Date Posted: 15 August 2008 at 2:33pm
Hi,

I just tried to create a helper function for adding panes to the status bar in vb.net like this

   Public Shared Sub AddStatusbarPane(ByRef CommandBar As AxCommandBars, ByVal lPaneID As Long, ByVal sPaneText As String, ByVal iPaneWidth As Integer, Optional ByVal PaneStyle As XtremeCommandBars.XTPStatusPaneStyle = 0)

        Dim Statusbar As XtremeCommandBars.StatusBar
        Dim Pane As XtremeCommandBars.StatusBarPane

        Statusbar = CommandBar.StatusBar
        Pane = StatusBar.AddPane(lPaneID)

        With Pane
            If PaneStyle <> 0 Then
                .Style = PaneStyle
            End If

            .Text = sPaneText
            .Width = iPaneWidth
        End With

    End Sub


But it does not add the panes. Does anyone know why ?




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net