Jeopardy Scorekeeper
Jeopardy Scorekeeper
Jeopardy Scorekeeper
Jeopardy Scorekeeper
Jeopardy Scorekeeper
Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper
Jeopardy Scorekeeper Jeopardy Scorekeeper
Jeopardy Scorekeeper
Go Back  Xtreme Visual Basic Talk > > > Jeopardy Scorekeeper


Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2005, 01:12 PM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default Jeopardy Scorekeeper


I'm new to Visual Basic, but I've figured out everything I need to know in making my Jeopardy scorekeeper (not a Jeopardy game, but a tool in keeping score when you play along with Jeopardy on TV), except for one thing. I can't figure out how to get the score working. I have made a label in the main window, but I am not sure how to display an updating score with it. I've set the program up to where the main window is the Jeopardy board, and the clue windows are buttons. Each of those buttons pops up a dialog with three buttons: correct, no ring in, and incorrect. Now, that's another thing I'm trying to figure out- how to make the correct and incorrect buttons add and subtract to the score displayed in the main window. Also, I have a button that pops up a dialog with three buttons (correct, cancel, and incorrect) and a text box. I want the value entered in that text box to add or subtract (depending on if my answer was correct or incorrect) to the displayed score, so that I can use that feature for Daily Doubles. Lastly, when all the clue buttons have been pressed, I want the Double Jeopardy window (which will be a window just like the original window for the Jeopardy round, except with new clue values, obviously) to pop up, with the same score intact. Hopefully you guys can help me.

And before you all flame me for not searching to see if this topic has been covered before, I already did. However, those threads did not specifically answer my question, so that's why I made a new one.

Last edited by heelsrule1988; 07-21-2005 at 01:17 PM.
Reply With Quote
  #2  
Old 07-21-2005, 08:36 PM
passel's Avatar
passelJeopardy Scorekeeper passel is offline
Sinecure Expert

Super Moderator
* Guru *
 
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 8,024
Default

You should probably zip, and attach your code so we can understand what you've done, and how you're poping up the dialog.
Given you have a label to hold the score, then you could just add or subtract to it,
i.e.
When you press the button to raise the dialog, it would set a value (let's say QuestionValue) to the value of that question. If you have the value on the button, then you could do
QuestionValue = Val(Command1.Caption)

On the dialog, in the correct button's click event you add to the total.

Label1.Caption = Val(Label1.Caption) + QuestionValue

In the incorrect button's click even you subtract from the total.

Label1.Caption = Val(Label1.Caption) - QuestionValue

To add the value in the textbox use
Label1.Caption = Val(Label1.Caption) + Val(Text1.Text)
You should be able to figure how to subtract, by now.

I don't see why you need a new window for Double Jeopardy, just use the same window, and set all the buttons to the new values.
__________________
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
Reply With Quote
  #3  
Old 07-21-2005, 10:58 PM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default

I get what you're saying, but I'm still kind of confused as to where to enter that info in. So, I think I'd better show you the code, lol. How exactly do I zip it, though, since I can't find the code itself in one file? Should I just attach my project file instead?

I think what would help is if I showed you a program that I'm trying to model my program to act like... http://members.fortunecity.com/chris...y/jeopardy.zip

I'm trying to make it do everything that program does. I've made my own design and everything, with colors and different fonts, but I want it to do just what that program in the link above is designed to do. Hope that helps. Thanks for your help, by the way. I'd be screwed without a place like this to come to, haha. It's greatly appreciated.

EDIT: I went ahead and zipped the project file and attached it. Hope that's OK.
Attached Files
File Type: zip Jeopardy Scorekeeper.zip (1.6 KB, 16 views)

Last edited by heelsrule1988; 07-21-2005 at 11:10 PM.
Reply With Quote
  #4  
Old 07-23-2005, 01:17 AM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default

Bumping this just to make sure nobody forgot about it. I'm hoping my last post made my problem clearer and easier to understand, because I'm really anxious to get this program working.
Reply With Quote
  #5  
Old 07-23-2005, 09:30 AM
passel's Avatar
passelJeopardy Scorekeeper passel is offline
Sinecure Expert

Super Moderator
* Guru *
 
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 8,024
Default

Three things.
1. I can't get anywhere with the Link, so can't see what you're trying to do.
2. You've only included the .vbproj file in you zip, which I assume is not enough (see item 3).
3. This lookes like a VB.Net project file, not Legacy Visual Basic, so your question should be posted on the VB.Net side of the forum. I'm not familiar enough with VB.Net to make suggestions, and VB.Net is different enough from VB6, I wouldn't try.

I'll ask one of the moderators to move this thread to the VB.Net side so you won't have to duplicate the post.
__________________
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.

Last edited by passel; 07-23-2005 at 12:43 PM.
Reply With Quote
  #6  
Old 07-23-2005, 01:40 PM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default

Oh, alright, thanks. By the way, I just realized about the link not working. Stupid remote links. My bad. Here's the page that it's located on (click the download link near the top)...


One more thing that might be important. I used Visual Basic 2005 Express Edition Beta 2 to make this. Not sure if that makes a difference or not, but I thought I'd mention that anyway in case it helps.

Last edited by Iceplug; 07-26-2005 at 09:19 AM. Reason: Removed link to link to EXE
Reply With Quote
  #7  
Old 07-25-2005, 03:54 PM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default

Hope my problem has not been forgotten. Still waiting for help.
Reply With Quote
  #8  
Old 07-26-2005, 09:19 AM
Iceplug's Avatar
IceplugJeopardy Scorekeeper Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

The above was a link to your exe. We cannot give you help unless you post all the source code and remove all of your exe files.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #9  
Old 07-26-2005, 09:38 PM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default

Oh, alright. I couldn't get the source code for that program, because someone else made that. I was just showing you that program to give you an idea of what I wanted mine to do, but since you can't see the source code, that would be difficult. Sorry to sound like a noob, but how do I find the source code for my project? I'm sure it is in a file by itself, but I don't know where it is.
Reply With Quote
  #10  
Old 07-27-2005, 07:45 AM
Iceplug's Avatar
IceplugJeopardy Scorekeeper Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

In the Visual Studio folder that is in your documents folder (the name varies with the version), you' should be able to find the folder that has the name of your project in it. Go in it, delete all of the EXEs and DLLs, zip up that whole folder, and attach it here.
Note, if you have DLL files in the folder, you need to tell us what they are so we can reference our version.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #11  
Old 07-27-2005, 12:15 PM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default

Done. The only DLL I found was called "My Project.Resources.Designer.vb.dll" and I found it two times. By the way, deleting the EXEs and DLLs won't hurt anything, right?
Attached Files
File Type: zip Jeopardy Scorekeeper.zip (119.5 KB, 9 views)
Reply With Quote
  #12  
Old 07-29-2005, 09:39 PM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default

It's been two days since the last response... just making sure this hasn't been forgotten.
Reply With Quote
  #13  
Old 07-31-2005, 05:29 PM
bear24rw's Avatar
bear24rw bear24rw is offline
Contributor
 
Join Date: May 2004
Location: NJ
Posts: 477
Default

I wasn't able to open your project... could you re-upload it?
__________________
Use[vb][/vb] tags when posting code.
Reply With Quote
  #14  
Old 07-31-2005, 08:39 PM
Iceplug's Avatar
IceplugJeopardy Scorekeeper Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

It has to be opened in .NET 2005 (The My Project folder should indicate this, FYI)

The following line:
result = Dialog1.ShowDialog
*should* not work, since result is a string and ShowDialog returns a dialog result...
(but 2005 is watered down, though - I continue to be surprised at what you can get away with)
But, regardless, what you get probably won't be what you want.
So, instead, Dim result As DialogResult

Then, in the Dialog form, set the DialogResult value after everytime you hide the button.

And back on the Jeopardy form, you check the value of result, which should tell you which button was pressed if you gave it unique values.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #15  
Old 08-02-2005, 12:40 AM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default

Ack. I believe I did everything you said, but I still can't get the score to display in the main Jeopardy form. I'm sure I screwed up somehow. This is frustrating when you're new at it, lol. Let me upload what I did, so you can tell me what I did wrong..

Oh, while I'm thinking about it, is there some way to make the clue dialog use the value that the clue is worth without having to make a clue dialog for every value? For example, if you press a $200 button, I want the clue dialog's title to be "$200 Clue", and add/subtract $200 to the score depending on what button you press. If that's too complicated for a newbie like me to understand, then don't worry about it. It probably is too complicated for me, lol. I was just trying to avoid making 30 new dialogs.
Attached Files
File Type: zip Jeopardy Scorekeeper.zip (119.5 KB, 4 views)
Reply With Quote
  #16  
Old 08-02-2005, 11:48 AM
Machaira's Avatar
MachairaJeopardy Scorekeeper Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

See the attached. Post any questions you have about how it works.

I didn't do anything with the Daily Double button. I'll leave that one for you.
Attached Files
File Type: zip Jeopardy Scorekeeper.zip (123.6 KB, 23 views)
Reply With Quote
  #17  
Old 08-03-2005, 12:34 AM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default

Wow!!! My goodness, you've done it. Thank you. Big time.

One minor question, though. I need to make a window for Double Jeopardy (that will be easy; I'll just copy the Jeopardy round and change the values from there), but how can I make the score carry over to the new window? Also, how can I make a new Final Jeopardy dialog open after all the clues in Double Jeopardy have been answered? Creating that dialog won't be hard, either, because I'll model it after the Daily Double window. If you could just answer that for me, my project would be complete. Man, thanks a lot for your help.

EDIT: I've been playing around with the Daily Double dialog, but I'm not quite sure how to get it to work. You probably figured it out already, but I want the amount entered in the text box to be added/subtracted to the score. Would you mind telling me how to do it?

Last edited by heelsrule1988; 08-03-2005 at 01:11 AM.
Reply With Quote
  #18  
Old 08-03-2005, 06:48 AM
Machaira's Avatar
MachairaJeopardy Scorekeeper Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

You can simply pass the score to the Double Jeopardy form's constructor:

Dim frm As New DoubleJeopardyRoundForm(_money)

frm.Show()
Me.Hide()


You could also simply reuse the existing form. Relabel the buttons and you don't have to change a thing.


As for the Daily Double - I'd change the Clue Dialog form and get rid of the Daily Double button. Add a checkbox that says "Daily Double" or something and a textbox for the amount you're wagering. When you process the form check to see if the checkbox is checked and use the amount wagered instead of the question amount. This will require some changing of the ProcessAnswer function, but it's not too big a deal. If you need some help with it, let me know.
Reply With Quote
  #19  
Old 08-03-2005, 12:08 PM
heelsrule1988 heelsrule1988 is offline
Newcomer
 
Join Date: Jul 2005
Posts: 15
Default

I think I will need help with the Daily Double, lol. One question about the first thing you said, though. I'm not quite sure where to put that. I don't want to put it in the wrong place, so I wanted to make sure I did it right by asking you first.
Reply With Quote
  #20  
Old 08-03-2005, 01:57 PM
Machaira's Avatar
MachairaJeopardy Scorekeeper Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

The code would go wherever you're displaying the Double Jeopardy form. I'd do it the other way, but that's just me.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Jeopardy Scorekeeper
Jeopardy Scorekeeper
Jeopardy Scorekeeper Jeopardy Scorekeeper
Jeopardy Scorekeeper
Jeopardy Scorekeeper
Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper Jeopardy Scorekeeper
Jeopardy Scorekeeper
Jeopardy Scorekeeper
 
Jeopardy Scorekeeper
Jeopardy Scorekeeper
 
-->