![]() |
#2
airfei2007-05-22 06:07
|
我的下拉菜单使用的是DropDownList,里面有多个项,每一项都是如:
Text黑色经典Value#000000.
现在我想通过一个下拉列表选择的颜色来改变TextBox输入文字的颜色.
我是这样写的.
this.message.ForeColor = this.color.SelectedValue; //message是TextBox的ID
但是这样不行,请高手指点!