Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Everyone


I'm struggling with this practice assignment. I'm very new to programming and am fairly frustrated with this. I've researched multiple sites. Hope anyone can help!

I need to create a WindowsFormApp with 2 ComboBoxs having 2 values each. When a button is pressed the output in the Label on the form needs to show a unique sentence, depending on which combination of selected fields the user selected in the ComboBoxs.


Hope someone can help!
Posted
Comments
Richard C Bishop 15-May-13 12:42pm    
What have you tried? Where is the code you are stuck on?
SwooshNeorPewPew 15-May-13 12:53pm    
To be honest i'm not sure where to begin.

I've used

combobox1.Items.Add("Text1");

and used an if statement but how do I use text in an if statement?

I've tried creating the Combo Box values as variables but after that I'm completely lost.
joshrduncan2012 15-May-13 13:11pm    
What is "Text1"? Are you wanting to add the text to the combobox? I don't think you can add a control to a combobox.
Sergey Alexandrovich Kryukov 15-May-13 18:00pm    
I must say, I almost never saw beginners frustrated with this fact (many were frustrated with particular difficulties, especially with some bad products they had to use, but this is perfectly OK). Many feel all right, many are excites, some overly excited, many overestimated themselves, but almost never frustrated. Are you sure it yours?
—SA

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900