sakurawill Posted January 26, 2015 Posted January 26, 2015 (edited) 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 January 26, 2015 by sakurawill
Derberux Posted January 26, 2015 Posted January 26, 2015 (edited) 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 January 26, 2015 by Alcatraz3222 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now