日期:2014-05-17 浏览次数:21127 次
<Grid>
<TextBox TextChanged="TextBox_TextChanged" Width="150" Height="100"/>
<TextBox x:Name="tb1"></TextBox>
</Grid>
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
{
TextBox tb = sender as TextBox;
if (tb != null && tb.Text.Length>=4)
{
tb1.Focus();
}
}