一、将光标移至文本开头 dzdh_combo.selectionStart = 0; 二、将光标移至文本尾部 dzdh_combo.selectionStart = dzdh_combo.GetText().trim().length-1;