Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - .net Statusbar helper function question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

.net Statusbar helper function question

 Post Reply Post Reply
Author
Message
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Topic: .net Statusbar helper function question
    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 ?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.