Hi all
Is there any way to use form as Msgbox ??
If so, How please ?
Thank you
Printable View
Hi all
Is there any way to use form as Msgbox ??
If so, How please ?
Thank you
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.
Thanks alot
Quote:
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.
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?
:p
It is just the final detail to add to this form and I will post the code.
Duh... Forget it.
Who would have thought the sound of the Message Box is a simple "Beep"?
VB Code:
'Sound Beep Beep
That wuz one funny message,Quote:
Originally posted by Tec-Nico
Duh... Forget it.
Who would have thought the sound of the Message Box is a simple "Beep"?
VB Code:
'Sound Beep Beep
however I found an other way to locate windows sounds
it wuz with the API function
VB Code:
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!!! :(
and how would you use it?
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!)
because VB doesn't support overloading...