键值转换

int i = (int)Keys.F1; //112
MessageBox.Show(Enum.GetName(typeof(Keys), i)); //F1

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注