Results 1 to 3 of 3

Thread: Message box error

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    225

    Message box error

    According to the teacher this is how you dou message boxes why doesn't it work?

    Private Sub Command1_Click()
    msg.box = "If you havent already clicked the white box below click it!"
    End Sub

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    That is not the correct way to do message boxes.

    VB Code:
    1. Private Sub Command1_Click()
    2. MsgBox "This is your text", vbInformation+vbOkOnly, "This is the title"
    3. End Sub
    <removed by admin>

  3. #3
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    msgbox

    (instead of msg.box)

    will work

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