Hi,
You can use a new thread.
Make a class
Public Class threaded
Public mstrQuestion As String
Public Sub New(ByVal strQuestion As String)
mstrQuestion = strQuestion
End Sub
Public Sub Doit()
if MsgBox(mstrQuestion, vbYesNo Or vbQuestion) = vbyes then
DoSomething
end if
End Sub
End Class
In the main form where you want the message box you need
Dim d As New threaded("My Question")
Dim ts As New ThreadStart(AddressOf d.Doit)
Dim t As New Thread(ts)
t.Start() '
'rest of main form code here
HTH
Bob
Sebastian Santacroce wrote:
Hello,
I'm trying get a message box to show useing messagebox.show
(...) and then checking what they chose. The only problem
is that when it pops up it is locking all other windows
until it the messagebox has been answered. I need it to
not look its parent form that is calling it. How can do
this?
Thanks
Sebastian