Article ID: 150193 - View products that this article applies to.
This article was previously published under Q150193
This article has been archived. It is offered "as is" and will no longer be updated.
The Sheridan Command button does not stay invisible although the Visible property is set to False. This can occur if the Visible property of a Sheridan Command button was set to False in a procedure in another form.
Use the ShowWindow API function instead of the Visible property of the button to hide/show the button. This function takes only two parameters: a window handle that becomes the hWnd property of the Sheridan control, and a constant that determines how to show the window.
The declaration below can be pasted in the General...Declarations section of the form where the routine is to hide the window:
To hide a Sheridan Command button, issue a command similar to the following:
and, to show a button:
Microsoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article.
Steps to Reproduce Problem
To correct this problem with the workaround, paste the declaration for ShowWindow in the Form...Declarations section of Form2. Instead of the command to make Visible property false, use the following command:
The button will not reappear until the following command is issued:
Article ID: 150193 - Last Review: February 28, 2014 - Revision: 3.0
Contact us for more help