I have tried a couple of different things and i still cannot get it working properly.. Is it a bug or am I able to do it a different way to get the functionality working with the custom buttons.
With these two lines of code
Dim ctrl As System.Web.UI.WebControls.WebControl
ctrl = TheEditor.ToolControls(TheEditor.ToolControls.IndexOf("ImageGalleryByBrowsing")).Control()
the functionality of the autoselect of the dropdown lists stops working so i think it happens when the System.web.ui.control is casted into a webcontrol.
Input anyone?