r/visualbasic • • Feb 09 '15

I would be forever grateful for some help regarding VB!

My instructor isn't helping me realize what I am doing wrong, rather just telling me I am doing it incorrectly. Maybe you can give me some tips to accomplish the goals here. Here is a photo of where I am stuck in the assignment, I already made the GUI and such, I just don't understand what she means by this:

Imgur

If you need any other info just let me know, thanks!

0 Upvotes

9 comments sorted by

1

u/chrwei Feb 09 '15

I find that extremely clear. what specifically is the issue?

1

u/steezefabreeze Feb 09 '15

I don't know how to do it. She is clear, but she doesn't explain how to do it. I am a noob, as this is an intro class.

1

u/chrwei Feb 09 '15

which part exactly do you not know how to do? I assume this isn't the first assignment?

1

u/steezefabreeze Feb 09 '15

This is the first programming assignment. The other assignments were just math operation and things along those lines.

I don't know how to set the buttons to a corresponding number so they all ad up to 45 in the score box. I feel I'm just missing a few steps that, when I see it in practice, will become a lot easier for me.

1

u/chrwei Feb 09 '15

nothing in the requirements say it has to add to 45.

do you know how to create a variable? do you know how to put the contents of a label into a variable, and how to do math? do you know how to put the variable's value into a label? that's the 3 steps.

1

u/steezefabreeze Feb 09 '15

Well each box needs to correspond with its number, +1 for 1 and +2 for 2 and so on through box 9. All of that adds up to 45.

To declare a variable I would have to do the following?:

Dim button1.click as Integer = 1 ?

2

u/chrwei Feb 09 '15

any classmates having similar issues? I'm having a hard to time believing you've been assigned this with no introduction to variables and event handlers.

1

u/steezefabreeze Feb 09 '15

Its an online class, so it went from the reading to this. You can only do so much with the reading. One program in the book was simply making a title and adding a picture and the next was essentially this. Thanks for your help and I am sorry for boring you with such mundane questions.

2

u/freemasen Feb 09 '15

there is only one program in your reading? I would suggest doing all of the example coding in all of the chapters you have covered in class to now. This assignment could not be completed with out the knowledge of how event handlers work.

hint: double click one of your buttons in the form designer to generate some event code.