Access button properties on different tab

Hi Everyone,

I want to access button properties from a button ON A DIFFERENT TAB.

I start with the following line in the top Method Variables section:

Private WithEvents btnProjectSearch As EpiButton

Then I include the following code in an OnLoad subroutine:

btnProjectSearch = CType(csm.GetNativeControlReference("df941672-a6f5-4688-b68a-c2956c634f0b"), EpiButton)

Then in the new button subroutine I call the button properties like the following:

btnProjectSearch.PerformClick()

This all works fine if I have the new button located on the same tab as the original button. If I place the new button on a different tab than the orignal, the new button will not respond.

Is there a way to accomplish this?

Thanks,
Ross