public ManualDataInput(ref Helpers.LicenseDataBase licData, ref MySettings Settings) { InitializeComponent(); txtProduct.Text = "[NAU-1504] CETerm for Windows CE 6.0 / 5.0 / CE .NET"; _licenseDataBase = licData; attachErrorProvider(); btnSave.Enabled = false; // Create the list to use as the custom source. var source = new AutoCompleteStringCollection(); source.AddRange(_licenseDataBase.productList); txtProduct.AutoCompleteCustomSource = source; txtProduct.AutoCompleteMode = AutoCompleteMode.SuggestAppend; txtProduct.AutoCompleteSource = AutoCompleteSource.CustomSource; //prefill _settings = Settings; //settings.load(); txtReceivedBy.Text = _settings.ExchangeUsername; }