dcsimg

Search:

Type: Posts; User: incognito_301

Search: Search took 0.03 seconds.

  1. Setting The Dice To Roll In The Direction Its Been Thrown Using The Cursor

    I used these codes in a dice rolling game to pick the dice up using the cursor and roll it when let go:



    Private Sub Dice1_MouseDown(Button As Integer, Shift As Integer, _
    X As Single, Y...
  2. Changing the saved info in a Text File

    Let's say for example, some info's been saved using this code:

    Open "C:\Textfile.txt" For Append As #3
    Write #3, Text1, Text2, Combo1.text, List1.text
    Close #3

    and the text file...
  3. Re: Adding File Names In A Folder To a Listbox

    I tried that and it gives me error msgs saying:


    and the problem seams to be the "As Scripting.Folder", "As File",.... in the dim statements.

    when i get rid of the "As File" and "As...
  4. Adding File Names In A Folder To a Listbox

    I wanted to add all the names of the files in a folder in my computer to a list box in my vb program, so i used:


    Do
    List1.AddItem Dir("G:\foler1\folder2\")
    Loop

    So i expect to...
  5. Re: Centering Texts in a Form

    That works great. thnx
  6. [RESOLVED] Centering Texts in a Form

    What is the code for printing what the user types in a textbox, centered in a form?
    It should work no matter what letter (big or small) the user enters.
  7. Replies
    12
    Views
    609

    Re: How can I add sounds (mp3s)?

    Ok, I used OLE and it works fine.

    - How can I turn the sound off after the user exits the game, either when clicking on 'Exit' button or clicking on the 'X' in the toolbar at the top of the page?...
  8. Replies
    12
    Views
    609

    Re: How can I add sounds (mp3s)?

    I have another question on the same topic.

    How can I use Windows Media Player in the components section of VB to play sounds (wavs, mp3s,...)?

    Just so you know, I have to use this component...
  9. Dodging Game Problem (Please Answer ASAP)

    I'm making a dodging game and there is something wrong with the dodging. Here's the codes:


    pleft = frmSkiJump.Image2.Left
    Ptop = frmSkiJump.Image2.Top
    pleft = pleft + 100
    Ptop = Ptop + 70...
  10. Re: How to change background picture in runtime?

    Aaaaaaah, Thanks. :sick:
  11. How to change background picture in runtime?

    Easy Q : How do you change background picture in runtime in VB6?
  12. Re: ***How to completely terminate a form when it is supposed to hide?

    Thanks. That really helped me out.
  13. [RESOLVED] ***How to completely terminate a form when it is supposed to hide?

    I am using VB 6 (!) and I need to know a way to terminate a form I'm done with it. What I mean is that my program, which is a game, asks the user if they want to play again. If they click 'No' the...
  14. Replies
    12
    Views
    609

    Re: How can I add sounds (mp3s)?

    Just in case, Because I might have more questions, I won't mark this thread as resolved for now.:)
  15. Replies
    12
    Views
    609

    Re: How can I add sounds (mp3s)?

    Sorry, after I added data1, I hadn't noticed or clicked on MMcontroll on the toolbox.

    Everything is fine now. Thank you for your help.
  16. Replies
    12
    Views
    609

    Re: How can I add sounds (mp3s)?

    That does not work. The option that you are referring as MMControl1 is data1 in my VB. Even if I change the name (MMControl1) to data1, it still gives me errors for:

    .Command = "Close"
    ...
  17. Replies
    12
    Views
    609

    Re: How can I add sounds (mp3s)?

    What is MMControl1_Done or MMControl1? I'm a beginner so please explain everything so that I can understand.
    Is there a way so the sound plays in the background as long as my program plays?

    BTW,...
  18. Replies
    12
    Views
    609

    How can I add sounds (mp3s)?

    I need away to add sound so that the sound is played when the user, for example, clicks on an option. How can I repeat that sound over and over again?

    Thanks.
  19. ***Help me to make a simple game using animation***

    I am using VB 6 and I have an school project to make a simple game using animation. I need ideas to make that happen. Plus, I am a beginer, the only thing I know about animation is how to use timers...
  20. Re: How can I use a specified information saved in a text file?

    I tried this but it gives me an error.


    Input past the end of file [and highlights:]
    Input #3, na, ag




    Well, It is Username and password thing!
  21. Replies
    6
    Views
    374

    Resolved Thread

    Yeah, Thanks again. R.E.S.O.L.V.E.D
  22. Replies
    6
    Views
    374

    Re: 2 simple questions

    Thank you for answering.

    Do you know how to add a bell sound?
  23. Replies
    6
    Views
    374

    [RESOLVED] 2 simple questions

    I need one answer quickly please.

    1- How can I use a simple loop to print (show) "tricks" and add ten spaces each time? Like this

    tricks
    SPACE SPACEtricks

    SPACE SPACE SPACE ...
  24. Re: How can I use a specified information saved in a text file?

    Sorry. It is pretty confusing the way I explained,:ehh:

    Yes what I meant was eacly what you said:

    1. I got Names in the combo box.
    2. User select one of the names
    3. Then User enter a number...
  25. Re: How can I use a specified information saved in a text file?

    Let's say I have a number in my text file (for example 100).

    text file:

    "name1", 9000
    "name2", 300
    "name3", 100
    "name3", 5The user chooses his/her name , which is name3 in this case,in a...
  26. How can I use a specified information saved in a text file?

    I have a program that uses this code to write the info entered by the user in a text file:



    I am using this code to put the first field (na) of info of the text file in a combobox:



    How...
  27. Re: Noob Q : How can I Print Info Entered in Textboxes in VB 6.0 (/98)?

    OK, Let me read "This post" and I'll tell you what I got.
  28. Re: Noob Q : How can I Print Info Entered in Textboxes in VB 6.0 (/98)?

    EDIT:
    Actully what I want to do is:

    1. Save The info to a txt file (As I said, I know this part)
    2. Print the file out using a printer
  29. Re: Noob Q : How can I Print Info Entered in Textboxes in VB 6.0 (/98)?

    Yes, You're right. I'll try this.



    And yes I want to print with a printer as I said in my first post.
  30. Re: Noob Q : How can I Print Info Entered in Textboxes in VB 6.0 (/98)?

    I just tried this on a simple project in VB and It didn't work.

    EDIT:

    and what's "--print receipt"? I need the actual code, because I'm guessing that's not.

    Thanx for yr reply.
  31. Noob Q : How can I Print Info Entered in Textboxes in VB 6.0 (/98)?

    My project is about saving data that is entered in textboxes into a file and then printing them out using a printer. I got the "saving to a file" part.
    So the user enters his/her name, age, deposite...
  32. Re: My "Heads or Tails" Game doesn't work (please answer ASAP)

    Oh, yes.
  33. Nice!

    I was looking for this setting! thanx.:thumb:

    [QUOTE]Oh, and to tell you, when you post your app, zip the project and attach, without any EXEs. People would not want to download stuff if...
  34. Re: My "Heads or Tails" Game doesn't work (please answer ASAP)

    Here's a very simple version of my game :



    You only need to change .zip to .exe.

    Any suggestions?
  35. Re: My "Heads or Tails" Game doesn't work (please answer ASAP)

    You're right. It's much better. But as I said I'm doing a high school project and I'm supposed to do it using a text box for input.

    But, thanks for all your good suggestions.
  36. Re: My "Heads or Tails" Game doesn't work (please answer ASAP)

    How do I make the program say "Invalid Input" if the user enters something other than "heads" or "tails"?
  37. Re: My "Heads or Tails" Game doesn't work (please answer ASAP)

    Yes I did, but after I posted the reply for "LaVolpe". :)

    So I edited my last reply.
  38. Re: My "Heads or Tails" Game doesn't work (please answer ASAP)

    Thanks for the replies. I'll try this as soon as possible.

    Thanx again.
  39. [RESOLVED] My "Heads or Tails" Game doesn't work (please answer ASAP)

    I am a high school student and I need help with my project.
    I am using VB 6 and my project is a "heads or tails" game and it looks like this:
    ...
Results 1 to 39 of 40



Featured


Click Here to Expand Forum to Full Width