close

The following code adds 5 spinbuttons next to 5 labels into a frame.
How can I make each spinbox control ( 1 and -1) the number displayed
in the label next to it?

For x = 0 To 5

Set LControl = Frame1.Controls.Add(quot;Forms.label.1quot;)
With LControl
..Caption = 100
..Top = 10 30 * x
..Left = 100
..Height = 11
..Width = 15
End With

Set SBControl = Frame1.Controls.Add(quot;Forms.spinbutton.1quot;)
With SBControl
..Top = 6 30 * x
..Left = 115
..Height = 18
..Width = 12
End With
NextThanx,

Thomas

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()