private void cbConnection_SelectedIndexChanged(object sender, EventArgs e) { _actScriptingDbReg = cbConnection.SelectedItem as DBRegistrationClass; _ac = new AutocompleteClass(fcbSQL, _actScriptingDbReg); _ac.RefreshAutocompleteForDatabase(); // _ac2 = new AutocompleteClass(fcbCommands, _actScriptingDbReg); _ac.AssignToObject(fcbCommands); }