using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.RadControlSpy;
using Telerik.WinControls.UI;

namespace _1445063MCCBkeyboardInput
{
    public partial class RadForm1 : Telerik.WinControls.UI.RadForm
    {
        public RadForm1()
        {
            InitializeComponent(); new RadControlSpyForm().Show();
        }

        private void RadForm1_Load(object sender, EventArgs e)
        { 
            this.productsTableAdapter.Fill(this.nwindDataSet.Products);

            this.radMultiColumnComboBox1.DisplayMember = "ProductName";
            this.radMultiColumnComboBox1.ValueMember = "ProductID";
            this.radMultiColumnComboBox1.DataSource = this.productsBindingSource;

            this.radMultiColumnComboBox1.DropDownStyle = RadDropDownStyle.DropDownList;
            this.radMultiColumnComboBox1.AutoCompleteMode = AutoCompleteMode.Suggest;

            this.radMultiColumnComboBox1.TabStop = true; 
            this.radMultiColumnComboBox1.GotFocus+=radMultiColumnComboBox1_GotFocus;
        }

        private void radMultiColumnComboBox1_GotFocus(object sender, EventArgs e)
        {
            this.radMultiColumnComboBox1.MultiColumnComboBoxElement.TextboxContentElement.Focus();
        }
         
    }
}
