Why won’t the controls go invisible?

S

sjw

I’m experienced with MS access but just starting programming in PowerPoint.
I have used several controls (buttons and textboxes) from the controls
toolbar. The controls are grouped with a shape to give the illusion of a
pop-up window. When I click on the button the shape becomes invisible but
the controls do not. If I go to the next slide and then return the controls
are then invisible. If I use an Action Button instead of a Control Button I
don’t have this problem.

So…….. why won’t the controls go invisible when clicked?

Code for the control button:

btnCloseModifySetpoint is control button
txtNewDemand is control textbox

Private Sub btnCloseModifySetpoint_Click()
Me.Shapes("grpModifySetpoints").Visible = msoFalse
Me.btnCloseModifySetpoint.Visible = False
Me.txtNewDemand.Visible = False
End Sub

Thanks,

sjw
 
D

David M. Marcovitz

In PowerPoint, control toolbar objects are accessed by the slide they are
on so if you are hiding an object on slide 4, you might need to preface
your hiding command with Slide4. For example:

Slide4.txtNewDemand.Visible = False

You shouldn't have to do this if the button is on the same slide as the
thing being hidden. I don't know if this is your problem, but I hope it
helps.

--David
--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 
S

sjw

David,

I trired using the Slide ID but the issue still remains.

I'm currently using the following work around to get the screen to refresh:
SlideShowWindows(1).View.GotoSlide 1

Slide 1 is the only slide.

Thanks for the suggestion,
sjw
 
D

David M. Marcovitz

OK. I get it. It's not that it's not hiding; it's that you don't see it
hide until the screen refreshes. In that case, what you are doing is the
easiest way to refresh the screen.
--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top