Results 1 to 9 of 9

Thread: Msgbox ???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    137

    Question Msgbox ???

    Hi all

    Is there any way to use form as Msgbox ??

    If so, How please ?


    Thank you

  2. #2

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    137
    Thanks alot

    Originally posted by MartinLiss
    Sure, just create a form that looks like a message box and display it modally. If you search the forum I think you will find one or more people who have posted forms that will already do the job.

  4. #4
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    Yeah... I am one of them but I haven't posted the code yet.

    Martin, how can I get the default sounds of the MsgBoxes?

    It is just the final detail to add to this form and I will post the code.
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  5. #5
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    Duh... Forget it.

    Who would have thought the sound of the Message Box is a simple "Beep"?


    VB Code:
    1. 'Sound Beep
    2. Beep
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  6. #6
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Talking LOL

    Originally posted by Tec-Nico
    Duh... Forget it.

    Who would have thought the sound of the Message Box is a simple "Beep"?


    VB Code:
    1. 'Sound Beep
    2. Beep
    That wuz one funny message,
    however I found an other way to locate windows sounds

    it wuz with the API function
    VB Code:
    1. Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long

    I saw it on a webpage... but I didn't add it to favorites!!!

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

  7. #7
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    and how would you use it?
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  8. #8
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    Toronto, Ontario
    Posts
    280
    Back to a more original question, why not overload the MsgBox() so that it is available through-out your code by simply calling MsgBox? Then you could automatically handle returns so they are just like in VB!? (great for mult-person development!)

  9. #9
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    because VB doesn't support overloading...

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