with(myBlock)
{
//This will only work when entrygroup block uses record object as execute method parameter.
WorkflowTable = "MyTable";
//show the "new" buttons for workflow.
ShowWorkflowButtons = true;
}
Have you passed the record object into the Execute method?
CRM.AddContent(myBlock.Execute(myrecord));
Response.Write(CRM.GetPage());