public override string Selection(IShipmentAutomationControl control) { try { var index = Win32ApiHelper.SendRefMessage(control.NativeHwnd, Win32ApiHelper.CB_GETCURSEL, 0, null).ToInt32(); if (index > 1) { var ssb = new StringBuilder(256, 256); Win32ApiHelper.SendRefMessage(control.NativeHwnd, Win32ApiHelper.CB_GETLBTEXT, index, ssb); return(ssb.ToString()); } return(Text(control)); } catch (Exception) { return(string.Empty); } }