I even tried to replace the onclick event on a current button
---------------------------------------------------------------------
Dim ctrl As System.Web.UI.WebControls.WebControl
ctrl = TheEditor.ToolControls(TheEditor.ToolControls.IndexOf("InsertImage")).Control()
ctrl.Attributes("onclick") = "OpenImageBank('/imagebank.aspx',this);"
--------------------------------------------------------------------
The code worked by replacing the functionality of that button but the dropdown auto selection feature quit working again.