It looks like you're new here. If you want to get involved, click one of these buttons!
'Check for Ctrl+LIf KeyCode = vbKeyL And (Shift And vbCtrlMask > 0) Then
'Move the top of the button to the bottom of the FormCommand1.Top = Height
'Add the height of the button to the height of the Form - plus some'extra to make it look OKHeight = Height + Command1.Height + 800
'Show the buttonCommand1.Visible = True
'Make sure the Form repaintsRefresh
Depending on what other controls are on your Form, you may have to set theKeyPreview Property of the Form to True to make sure the Form knows thatyou've pressed Ctrl+L. You can use the Top and Left Propeties - or the Move Method - to adjust the position of the Command button before you makeit visible.
For more information about the VB Constants (vbKeyL and vbCtrlMask) see theKeyDown Event topic in VB Help. If you have a version of VB that doesn't support those specific Constants:
vbKeyL= 76vbCtrlMask = 2