To get the buttons to fire the event in my main code (cdSearch) I had to do this;
cd.Initialize(Me,Page2,"cdSearch",pnlUser,Colors.LightGray)
cd.AddView(pnlUser, cd.width, 300)
cd.Show("Search Results", Array As String("OK"),Null)
cdDialog=cd <------------- without this cdSearch_Click does not fire
where both cd and cdDialog are dim as customdialog