Re: message box non modal?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Sat, 6 May 2006 12:08:08 -0400, "Jack" <notreplyto@it> wrote:

Is it possible to have message box as non modal window, or should I create
my own?
Jack


Check out the MessageBox& API call. Very easy to use - does what you
want.

Declare it:
Declare Function MessageBox& Lib "user32" Alias "MessageBoxA" _
(ByVal hwnd&, ByVal lpText$, ByVal lpCaption$, ByVal wType&)

Use it:
Rcd& = MessageBox&(Me.hwnd, "Some text...", "A Title", vbOKOnly +
vbExclamation)
.



Relevant Pages

  • Re: need proof??? - Have the Answer..I You care.
    ... I create type safe declarations of SendMessage to avoid such ... (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam ... Private Declare Function SendMessageByString Lib "user32" Alias ...
    (microsoft.public.vb.general.discussion)
  • Re: Minimize Maximize buttons
    ... Public Declare Function GetWindowLong _ ... Lib "user32" Alias _ ... (ByVal hwnd As Long, _ ... Private Declare Function SetWindowLong _ ...
    (microsoft.public.excel.programming)
  • Re: SendKeys is affected by clicking on Close button
    ... > Yeah, Appleman's book is a great place to start but is by no means ... Private Declare Function TabCtrl_SetCurSel Lib "comctl32" (ByVal hwnd As ...
    (microsoft.public.vb.general.discussion)
  • Re: Dll not found
    ... Integer in Vb is 16 bits, an int in C is 32 bits. ... Alias "Move" (ByVal hWnd As Long, ByVal Msg As Long, ByVal nAzimuth As ... of the path in your Declare. ... Perhaps it is choking because this Dll ...
    (microsoft.public.vb.general.discussion)