当Form2的AcceptChange按钮按下,需要修改Form1中ListBox中相应列的值,因此可以考虑同时将Form1中的ListBox控件当参数也传入Form2,所有修改工作都在Form2中完成,根据这个思路,Form2代码如下: 代码如下:publicpartial class Form2 : Form { private string text; private ListBox lb; private int index; //构造函数接收三个参数:选中行文本,ListB
评论星级较低,若资源使用遇到问题可联系上传者,3个工作日内问题未解决可申请退款~