Jump to content
Tuts 4 You
Sign in to follow this  
sakurawill

c# need help with reflection

Recommended Posts

sakurawill

how can i use reflection to print all the items of comboBox1 to textBox1?


and just need to use reflection,can anyone help me?


thans a lot^_^



            this.comboBox1.Items.AddRange(new object[] {
            "CC1",
            "CC2",
            "CC3",
            "CC4",
            "CC5"});

Edited by sakurawill (see edit history)

Share this post


Link to post
Alcatraz3222

looks as a joke.., why would use someone reflection to print items from a combobox to a textbox? 



foreach(var item in comboBox1.Items)
{
textBox1.Text += item;
} //result will look like: "CC1CC2CC13CC14CC15"

Edited by Alcatraz3222 (see edit history)
  • Like 1

Share this post


Link to post
Base64

Sound weird for me to :P

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...