MaestroRage
Member
- Joined
- Sep 30, 2008
- Messages
- 5
- Programming Experience
- Beginner
I've been ripping my hair out for 2 days now and I finally gave in and admitted defeat. I have 3 forms for a GPA calculator i'm designing.
Mainform (has a tab control holding two CourseControllers)
CoursePanel (the core object to be used)
CourseController (has multiple CoursePanels and radio buttons etc)
Now what I want to do is have a function from MainForm that reads through the CoursePanels in CourseController and add them up into one variable. After that CourseController has been traversed, I want to then jump into the second CourseCountroller found on page 2 of the MainForm's tab menu, and again, gather necessary information.
At the end of the day, I should have traversed through both CourseController's and spit out a number. My difficulty is I can read through the first just fine, but when I tell the tab control to go to page 2, I still don't can't start getting information from there.
Please, any help would be GREATLY appreciated!
Here is some code that didn't work :/
PanelCycle is supposed to go through each panel inside that course controller and tallies up scores. It is a function that returns the final number that is added onto Inty.
Mainform (has a tab control holding two CourseControllers)
CoursePanel (the core object to be used)
CourseController (has multiple CoursePanels and radio buttons etc)
Now what I want to do is have a function from MainForm that reads through the CoursePanels in CourseController and add them up into one variable. After that CourseController has been traversed, I want to then jump into the second CourseCountroller found on page 2 of the MainForm's tab menu, and again, gather necessary information.
At the end of the day, I should have traversed through both CourseController's and spit out a number. My difficulty is I can read through the first just fine, but when I tell the tab control to go to page 2, I still don't can't start getting information from there.
Please, any help would be GREATLY appreciated!
Here is some code that didn't work :/
VB.NET:
Dim Inty As Integer = 0
TabMenu.TabIndex = 0
Inty = Inty + CourseController.PanelCycle(1)
TabMenu.TabIndex = 1
Inty = Inty + CourseController.PanelCycle(2)
PanelCycle is supposed to go through each panel inside that course controller and tallies up scores. It is a function that returns the final number that is added onto Inty.