Needing some help in a Windows Form Application

First things first. Yes I am a student, and yes this is an assignment. NO I DO NOT WANT YOU TO WRITE IT FOR ME. I simply need some help figuring out how to accomplish my goal. We had (2) one hour classes on basic form things like labels, text boxes, buttons, and list boxes and such. Then a final that asks for some things we never covered. I've researched this topic on the web and I'm shocked at the number of people who contribute to these sites and forums who are downright rude to HONEST people simply looking for some THEORY HELP. Again, I don't need code that I can pop in, I JUST NEED TO UNDERSTAND HOW TO DO WHAT I NEED TO DO.

The project is called "Eddie's Equipment Rental" and this is what I was told to do.

1. Write a program for Eddie’s Equipment Rental -semi done-
2. Build a windows form similar to the one above -done-
3. Eddie charges one amount for full day rentals and another amount for half days
4. Use 3 parallel arrays to store the data -done-
Equipment: Rug Cleaner - Lawn Mower - Paint Sprayer
Half Day Charge:16 - 12 - 20
Full Day Charge:24 - 18 - 30

5. Load the list box during the form load event -done-
6. The user should click on the item in the list box to select the equipment -semi done-
7. The user must enter an F or H for full or half day -semi done-
8. The Display Charge button will display the appropriate amount in the Rental Charge text box -confused-
9. The Clear button will clear the 2 text boxes -done-

My biggest problem is figuring out how to make clicking on the item in the list box while having the appropriate F or H in the duration box make a rental charge appear when clicking on the button. We haven't even talked about passing variables or values in a form between elements. I've got the click event handlers, but can't find any kind of info on how to pass values around between the elements.

I can post my code if need be, but I'm just worried about the theory and practice. If anyone knows of any good links to info I'll take that too.
Last edited on
Most of us don't do C++/CLI, which is a different language. As much as this website's owner wants to draw traffic by including C++/CLI in the forums' descriptions, the truth is that very few of the regulars here actually know any C++/CLI. For instance, I only know good ol' C++.

Soooo, you'll probaby have a better shot at this @ the MSDN forums.
And the name of the site is Cplusplus.com? This site is a joke... That's like going to a Ford Dealership to buy Chevrolet Vehicles. Thanks for nothing.
Actually WebJose is correct. There is a difference in C++ and C++/CLI. His suggestion is about the CLI version of C++ since that's what your asking about. This website is C++, as per say the site name, so he has not told you anything false or misleading. And your attitude is totally uncalled for.
LOL. What a d00sh!

So long!
I got some help from a site that actually has a lot of helpful and useful people. Not a collection of shams and semantics who claim to know C++. And the class I'm in is Advanced C++, and we've been using "Good ol' C++" for most of the semester. Maybe we are hitting C++/CLI at the end, but really guys? There were a lot of chuckles and laughable posts about cplusplus.com at the other site when I mentioned I came here. (I was told I shouldn't have been allowed to join if I didn't have a members only jacket.) As for this site, I see a Windows Programming and C++ listed, so yes I'm a "d00sh" for assuming you guys had some knowledge outside of the old very basic C++. I'm off to greener pastures where people aren't close-minded and living in the 80's. Have fun with your "Good ol' C++" LOL!
80's?? LOL!!! That is some ignorant comment! Worthy of the d00sh that posted it, I guess. Read http://en.wikipedia.org/wiki/C%2B%2B11. The new "good ol' C++" standard approved August 2011. Is that new enough for ya?

Get lost already.
And for the record, it was YOU that came in with the "macho" attitude.
Topic archived. No new replies allowed.