I can't seem to find the control property that will bring a control to the front at runtime. The code below is wanting the three command buttons to appear in the lower right-hand corner of the expanded text box. As it is now, they are hidden behind the text box.
Code:
Private Sub tbURL_GotFocus()
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
' Expand the height of our URL text box to 2 inches and put the option buttons in the lower right corner.
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Me.tbURL.Height = 2880 'Bump our text box height up to 2 inches
Me.cmdSaveURL.Top = Me.tbURL.Top + Me.tbURL.Height - Me.cmdSaveURL.Height
Me.cmdCancelURL.Top = Me.tbURL.Top + Me.tbURL.Height - Me.cmdCancelURL.Height
Me.cmdOpenURL.Top = Me.tbURL.Top + Me.tbURL.Height - Me.cmdOpenURL.Height
Me.cmdSaveURL.Visible = True
Me.cmdCancelURL.Visible = True
Me.cmdOpenURL.Visible = True
End Sub
The buttons are visible, as I can just see the one of them peeking from behind:
