Personal Loans | Car Insurance | Loans | Motorcycle Fairing | Vegas Hotel
Help I need It big time On VB, Please help [Archive] - PCMech Forums

PDA

View Full Version : Help I need It big time On VB, Please help


farha
11-18-2000, 08:20 PM
Hello everybody, I need help on VB, everyone who's very good on VB drag and drop game or rnd click event please email me. I need it big time...

Thank you all..

[Yesterday I was me-1, Today it's me, and tomorrow it's be
me+1]

Statica
11-20-2000, 10:34 AM
U'd find more help for this in the programming forum. Am sure the whizzes there will help u right along. VB & the NIX dont go too well :) Unless of course it is a joke regarding affliction of VBS based virii :)

Hope u have better luck there

mosquito
11-20-2000, 11:12 AM
Please explain what the problem is. I can't help you if you don't supply enough info. Whats da problem with the drag and drop?

farha
11-20-2000, 06:51 PM
Drag and Drop Game: This is a game like as we see in Wheel and Fortune On North American TV show.

Here a brief description:

A word from Database will be selected using a random number and it will be secret word. Then player will guess his or her letter to complete that secret word.

The player will bet an amount of money before he start the game, then he or she is supplied with $100 to start as bonus and attempt to increase it by making correct guesses. If the player guesses the secret word his or her win is double the bet amount he or she made.
For incorrect guess the player's money decreased by 10%. For example, if player bets $10 the maximum win for a word will be $20, and each incorrect guess will result $2 cut off the $100.
There will be 2 hints associated with that word in a database. If player request for hint, for each hints he or she losses 10% of the initial winning.
Player is given 10 chances to guess the word and lose the game if the word is not guessed in 10 chances.
If player reaches to $0 dollar let him or her know about the situation like how many hint left and used.

This is basically is….I hope we all get concept about that gaming, please help me out here.. It's good to have it as drag and drop… but If anyone know other than that method, please also reply…

Here what I made so far….

A..For the main form…

1. I have 6 lblAlphabet in a control array.
2. I have 26 cmdAlphabet in a control array.
3. 1 imgAlphabet (where player will drag letter from
cmdAlplabet and go to lblAlphabet Autometically. In
that sense, coding in lblAlphabet, cmdAlphabet and
imgAlphabet's drag and drop option from property windows
will be set to Autometic.
4. 1 lblBet
5. 1 lblWinmoney
6. 1 lblHintleft
7. 1 cmdQuit
8. 1 cmdPerformance
9. Also one ADO controller box which will be invisible.

B.. I made one Access database for words and hints 3
columns, 1 for word and 2 for hints. Using ADO
controller I don't know how to make code for this
database. But I did the thing has to do with ADO to
database access.

C.. Here's I made code so far and stuck, can't just move
on, I am not a programmer that's why may be..
Please help me out here ASAP.. Any help at all.

Plese cut and paste folling code and see...

Option Explicit

Private Sub Form_Load()
Dim a As Integer

For a = Command1.LBound To Command1.UBound

Command1(a).DragMode = 1
Next a

End Sub

Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)

End Sub

Private Sub imgAlphabet_DragDrop(Source As Control, X As Single, Y As Single)

If TypeOf Source Is CommandButton Then

lblAlphabet(Rnd * 6).Caption = Source.Caption

End If
' lblAlphabet(Index).DragMode = 1

End Sub

Run it and See the result… I am not really worrying about making code for Exit those little thing. Because, I assume we all know that. All I need coding for Calculation and how to call hints and link coding to Access word Database to main form. Please My humble request help me out here ASAP. I need it big time.

Thank you all fellows to who and who's not consider that subject matter. Anything come out to your mind please let me know and ask if you need more information to ask.

Thank you all once again..

[Yesterday it was me -1, today it's me, tomorrow it will be me +1]