private void txtName_TextChanged(object sender, EventArgs e) { txtNamePY.Text = PinYin.GetCapital(txtName.Text.Trim()); }