Results 1 to 7 of 7

Thread: Add data to ComboBox [Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166

    Add data to ComboBox [Resolved]

    This is the problem. I can add data to a combobox if it is in the same class.

    For example:
    String x = "Test";
    combobox1.Item.Add(x);

    But if I have the data in another class I cannot add it.

    For example

    String x = "Test";
    Form1 myForm = new Form1();
    myForm.combobox1.Item.Add(x);


    But it does not work. Any ideas? I am new to C#, so sorry if this is simple.
    Last edited by jordan23; May 17th, 2004 at 08:20 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width