CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Posts
    65

    How can I make this message box work...

    Hi,

    In my game, I have 2 text boxes called "Pound" and "Pence". When the game finishes and the user clicks a button called "Collect", I want a message box to come up and display the amount of money in the text boxes. How can you do this?

    Any Info, Thanks

    Mark


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: How can I make this message box work...

    If you want textboxes, you may do a form to show in modal state
    ie:

    form2.Show, vbModal
    else, you can display the amount in formatted text:
    msgbox "Total amountA =" & chr(9) & varTotalA & vbcrlf & _
    "Total amountB =" & chr(9) & varTotalB




    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured