怎样更改ComboBox中的值呢?谢谢,在线等候 TO:LiSDN(LOCK ON) 焦点移开算完成,当下次获得焦点时,下列框中的值是刚才改过的值 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 this.comboBox.Items[index] = newValue; int myindex=-1;//自定义变量,用于记录当前的indexprivate void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e){ Sindex=this.comboBox1.SelectedIndex; }private void comboBox1_Validated(object sender, System.EventArgs e){ if(this.Sindex!=-1) { string a=this.comboBox1.Text; this.comboBox1.Items[this.Sindex]=a; }} int myindex=-1;//自定义变量,用于记录当前的indexprivate void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e){ myindex=this.comboBox1.SelectedIndex; }private void comboBox1_Validated(object sender, System.EventArgs e){ if(this.myindex!=-1) { string a=this.comboBox1.Text; this.comboBox1.Items[this.myindex]=a; }} 求一算法,平移折线 c# 写com接口封装数据库,然后用c++调用接口,但是无法识别全部的方法。 还是处理空格的问题 …… 用c#自带做的图标没办法在窗体中显示出来 我问个问题,大家帮个忙....................... 请指教:如何定时用服务器的时间更新本地客户端电脑的时间 如何在datasource设为dataview的datagrid里面删除选定的一行? 庆祝今天下大雪,再问大家一个问题,3k油. 找字符串的问题 .Net的多语言设置问题 如何解决数据窗口同步效果? .Net支持哪些应用服务器?或者哪些应用服务器支持.NET?
private void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e)
{
Sindex=this.comboBox1.SelectedIndex;
}
private void comboBox1_Validated(object sender, System.EventArgs e)
{
if(this.Sindex!=-1)
{
string a=this.comboBox1.Text;
this.comboBox1.Items[this.Sindex]=a;
}}
private void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e)
{
myindex=this.comboBox1.SelectedIndex;
}
private void comboBox1_Validated(object sender, System.EventArgs e)
{
if(this.myindex!=-1)
{
string a=this.comboBox1.Text;
this.comboBox1.Items[this.myindex]=a;
}}