Sunday, January 30, 2011

WPF Combobox Selected Index Change

private void cmbPCNo_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            try
            {
                string PCName = cmbPCNo.SelectedValue as string;
                txtUserTicket.Text = objTimeManagementManager.GetTicketNoManager(PCName, DateTime.Today);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error: " + ex.Message, "PC Name", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }

vfpoledeb.1 provider is not registered on the local machine

Have u Install VFP Ole DB Provider in your System ? If No then Please Install it from following link. http://www.microsoft.com/download...