I think you need to post compilable code, since it is not clear whether your edits should be on a separate modal form, or on, say, a separate panel alongside the tabbed control (pagecontrol?);
or covering it, but made visible/invisible by some means.