Article ID: 150193
Article Last Modified on 6/24/2004
#If Win16 Then Private Declare Function ShowWindow Lib "User" (ByVal hWnd As Integer, ByVal nCmdShow As Integer) As Integer #Else Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long #EndIf Const SW_SHOW = 5 Const SW_HIDE = 0To hide a Sheridan Command button, issue a command similar to the following:
ShowWindow Form1.SSCOmmand1.HWnd, SW_HIDEand, to show a button:
ShowWindow Form1.SSCommand1.HWnd, SW_SHOW
Private Sub Form_Load()
Form2.Show
End Sub
Private Sub Command1_Click()
Form1.SSCommand1.Visible = False
End Sub
Call ShowWindow(Form1.SSCOmmand1.HWnd, SW_HIDE)The button will not reappear until the following command is issued:
Call ShowWindow(Form1.SSCommand1.HWnd, SW_SHOW)
Keywords: kbbug KB150193