MultiPage control

G

George

I am having diffculty binding events to controls contained
in a multipage control

given

Dim p As Page, c As Control
'mpMain is the multipage control
Set x = mpMain.Pages(0)
Set c =
p.Controls.add"Forms.CommandButton.1", "cmdUpdate", True)
c.Caption = "Update"

i need to caputre the click event for the button and do
something associated with it [update something]

any suggestions ?
 
Top