Hi
I was wondering if you could help.
Basically I have text boxes with picture boxes below them (see attachment)
At fist all picture box will be hidden.
If I then click on a text label the picture box below it appears. If I then click on another label the picture box below appears and all others disappear.
Could you help?
Thanks in Advance
Hiding a number of items on selection
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- jimbobukii
- Posts: 52
- Last visit: Mon Dec 04, 2017 9:59 am
Re: Hiding a number of items on selection
All controls have a Visible property that lets you hide the control.
David
PowerShell Code
Double-click the code block to select all.$label1_Click={ $picturebox1.Visible = $true $picturebox2.Visible = $false $picturebox3.Visible = $false }FYI, if you want people to know they should click something, I recommend using a Button instead of a label. Typically labels are used as static text.
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- jimbobukii
- Posts: 52
- Last visit: Mon Dec 04, 2017 9:59 am
Re: Hiding a number of items on selection
Thanks, I did think of doing it that way but then changed as per your FYIdavidc wrote:All controls have a Visible property that lets you hide the control.
PowerShell Code
Double-click the code block to select all.$label1_Click={ $picturebox1.Visible = $true $picturebox2.Visible = $false $picturebox3.Visible = $false }FYI, if you want people to know they should click something, I recommend using a Button instead of a label. Typically labels are used as static text.
David