这样吧:
在form类中定义:
public static ListBox listBox;
  listBox = new ListBox();
......
在A中:Form。listBox。Item。Add("看到我了吗?");

解决方案 »

  1.   

    lbywyj(沙漠上建筑)
    你写面向过程的代码呢?你用的是C?如果在其他地方用From 也还是那个样子?//in form1
    protected  ListBox listBox;
    //添加字符串
    public AddListData(string sNew)
    {
        this.listBox.Add(sNew);
    }
    //添加ListItem
    public AddListData(ListItem item)
    {
        this.listBox.Add(item);
    }
    public class A
    {
         public bool InitData(Form1 form)
         {
              SqlDataReader read = DbFactory.GetDb().Query("SELECT * FROM MyTable");
              if(read == null)
                    return false;
              while(read.Read())
              {
                   form.AddListData(read.GetString(0));
               }           read.Close();
    }
    }
      

  2.   

    to:gujianxin(木头象) 
     如果有多处用到:form中的listBox的话,我会把listBox作为参数传递给相应的类的,
    难道我上面的代码有错吗?
    而对于你的代码:拿到你每次都会把你的Form都作为参数传递吗? 你不觉的开销太大了吧?
    ?