在textbox中怎样按回车键直接触发事件
Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.?TextBox2.Visible = False
Button2.Visible = False
modellname = TextBox2.Text
如上段代码,我怎么通过在textbox中输入完东西,直接按回车键,然后自动执行上段代码,是不是在?处设置,应该怎样设置