How to Hide a Button in Visual C

Programmers hide buttons and other objects to conceal the objects from users until the appropriate input is received from the user. You can show or hide a Visual C button using the button's properties. The "Visible" property set to "false" hides the button without the need to delete it from the form.

Instructions

    • 1

      Click the Windows "Start" button in the task bar. Click "All Programs," then click "Microsoft .NET Framework." Click "Visual Studio" to open the C programming software.

    • 2

      Double-click the C project file in the list of "Recent Projects" displayed on the Visual Studio home page. The code loads, and each Visual C form is displayed in the "Solution Explorer" window.

    • 3

      Right-click the Visual C form that contains the button you want to hide. Click "View Code" to load the coding file.

    • 4

      Type "button1.Visible = false" in the code editor. The "Visible" property hides the button until you need to use it. To show the button, type "button1.Visible=true" in the editor.

Related Searches:

References

Comments

Related Ads

Featured