I have a form with a tab control and each tab page contains a subform. My question is how can I run an initialization code for each subform when the user clicks its tab. The code bas to refer to an input value from the main form. I tried the load event procedure for the subform but it would not work since the subform is loaded when the main form is loaded. I tried something like page.click() but it doesn't work either. Any idea?