Window component

[font=Georgia]How do I control the window component through a button?? Can I press the button to make the component appear? what’s the deal?[/font]