none
Custom Controls in Infopath RRS feed

  • Question

  • hi ,

     I want to add statusBar control to my form... does any body worked on this?

    • Moved by edhickey Monday, May 23, 2011 2:20 PM (From:.NET 3.0/3.5 Windows Workflow Foundation)
    Monday, May 23, 2011 7:55 AM

All replies

  • hi ,
     
    here's an example:
     
    [code]
    'you must add a reference to the library: Microsoft Windows common Controls (SP6)
     
    Dim WithEvents objStatusBar As MSComctlLib.StatusBar
     
    Private Sub UserForm_Initialize()
    Set objStatusBar = Me.Controls.Add("MScomctlLib.sbarctrl.2", "StatusBar1")
    With objStatusBar
             .Panels(1).AutoSize = sbrSpring
            .Panels(1).Alignment = sbrRight
            .Panels(1).Style = sbrText
            .Panels(1).Text = Environ("USERNAME")
            .Panels.Add 2, , , sbrDate
            .Panels(2).Alignment = sbrCenter
            .Panels.Add 3, , , sbrTime
            .Panels(3).Alignment = sbrCenter
            .Style = sbrNormal
            .Visible = True
            .Width = Me.Width
    End With
    End Sub
    [/code]
     
    --
    isabelle
     
     
    Monday, May 23, 2011 7:53 PM
  • could you send this code in C# ?

    is possible to add this  code in infopath form?

    how it is possible?

    Wednesday, May 25, 2011 4:17 AM