Hello to all of you. I have been reading through a lot of the posts in the forums and have noticed that there are a lot of people willing to help out others and give advice. Well I am new to programming and am trying to learn how to code in C#. My issue is that I am trying to write a program in C# using the windows form style, (not as a console application), that allows a user to enter a string value in 5 separate text boxes. Upon clicking a button, the program should display the values entered into two separate labels,each on a new line. One label will list them in the order in which they were input, and another that lists them in the reverse order. The catch is we have to store the users values in an array, and then use a foreach loop for one of the labels, and a regular for loop for the other label. I am having trouble figuring out how to store a value from a textbox into the array, and then have the program display those values into the appropriate labels. Any help that is offered would be greatly appreciated. Thank you in advance.
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.