Results 1 to 9 of 9

Thread: MessageBox! [Sandpaper]

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    MessageBox! [Sandpaper]

    Hi,

    how can I show a messagebox in VB6?

    Thanks,
    The Frog
    Last edited by mendhak; Aug 6th, 2004 at 01:43 AM.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2003
    Location
    Greece, Salonica
    Posts
    473
    The easy way:
    VB Code:
    1. '© by Mike2
    2. MsgBox "Hello Frog!"
    The hard way:
    VB Code:
    1. '© by Mike2
    2. Const MB_DEFBUTTON1 = &H0&
    3. Const MB_DEFBUTTON2 = &H100&
    4. Const MB_DEFBUTTON3 = &H200&
    5. Const MB_ICONASTERISK = &H40&
    6. Const MB_ICONEXCLAMATION = &H30&
    7. Const MB_ICONHAND = &H10&
    8. Const MB_ICONINFORMATION = MB_ICONASTERISK
    9. Const MB_ICONQUESTION = &H20&
    10. Const MB_ICONSTOP = MB_ICONHAND
    11. Const MB_OK = &H0&
    12. Const MB_OKCANCEL = &H1&
    13. Const MB_YESNO = &H4&
    14. Const MB_YESNOCANCEL = &H3&
    15. Const MB_ABORTRETRYIGNORE = &H2&
    16. Const MB_RETRYCANCEL = &H5&
    17. Private Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (ByVal hwnd As Long, ByVal lpText As String, ByVal lpCaption As String, ByVal wType As Long) As Long
    18. Private Sub Form_Load()
    19.     MessageBox Me.hwnd, "Hello Frog!", "Frogs", MB_OK
    20.     End
    21. End Sub
    Good luck!

  3. #3
    Hyperactive Member
    Join Date
    Mar 2003
    Location
    Greece, Salonica
    Posts
    473
    Please edit your first post and add "[Solved]" (without the quotes) to the title.









  4. #4
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152
    what do ya wanna show it? sandpaper? food? bodwad?
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  5. #5

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    I am happy. I can show a messagebox. Now I will show it to all my cool friends and make them jealous of me.

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    But show them the easy way... Don't make them feel too bad


    Has someone helped you? Then you can Rate their helpful post.

  7. #7

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Yes, you're right. I'm the Angel of Merciful Sandpaper. Hallelujah.

  8. #8
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Amen


    Has someone helped you? Then you can Rate their helpful post.

  9. #9
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Originally posted by mike2
    The easy way:
    VB Code:
    1. '© by Mike2
    2. MsgBox "Hello Frog!"
    Good luck!
    Can I use your code in my project?Do i have to pay you or JupiterMedia or Who ?
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

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