Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visible Property

Status
Not open for further replies.

buttons

Programmer
Joined
Oct 15, 2000
Messages
1
Location
US
Hello.<br><br>I have two buttons, mutually exclusive, that is if one is clicked and visible the other one should become invisible.&nbsp;&nbsp;However, I am not able to achive it for both buttons.&nbsp;&nbsp;I have riten the simple Command18.visible false and command22.visible=false on clic events of Command22 and Command 18 respectively but for some reason it does not perform it task for the Command22.&nbsp;&nbsp;If you have some ideas how this problem can be dealt with I appretiate you comments.<br>Thanks in advance<br><br>Mike.
 
use an Option Frame instead<br><br>Open your form in design view then<br>Add a Frame<br><br>It's a wizard so it will prompt you <br>part way through you will asked what type.<br>Buttons, Check boxes, Radio buttons.<br><br>Any item inside the frame is a toggle and only one can be chosen the others are not. If you only need 2 just put 2.<br>Now they don't disappear as you mentioned but it might be a solution rather than re-inventing the wheel. <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
In the onClick event of Button18<br><i><br>&nbsp;&nbsp;If command18.visible = true then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Command18.visible = false<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Command22.visible = true<br>&nbsp;&nbsp;Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Command18.visible = true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Command22.visible = false<br>&nbsp;&nbsp;End if</i><br><br>In the onClick event of Button22<br><i><br>&nbsp;&nbsp;If command22.visible = true then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Command18.visible = false<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Command18.visible = true<br>&nbsp;&nbsp;Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Command22.visible = true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Command18.visible = false<br>&nbsp;&nbsp;End if</i>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top