Thanks Garret, using isVisible does the trick, setting pbVisible does not.