窗体中有一个年龄文本框txtAge,下面()代码可以获得文本框中的年龄值。

A、int age = txtAge; B、int age = txtAge.Text; C、int age = Convert.ToInt32(txtAge); D、int age = int.Parse(txtAge.Text);

时间:2022-11-07 07:40:59 所属题库:C#程序设计题库

相似题目