473,322 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Msgbox problem

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
Nov 20 '05 #1
5 1271
Sebastian,
Unfortunately both MsgBox & MessgeBox are modal, as normally the info they
are presented needs to be taken care of.

If you need a modeless messagebox, I would suggest designing a new form that
is designed to be used Modeless (Show instead of ShowDialog) that looks &
feels like MessageBox. You can use the System.Drawing.SystemIcons class to
get the icons that the MessageBox class displays...

Hope this helps
Jay

"Sebastian Santacroce" <se*******@ilogic.com> wrote in message
news:0b****************************@phx.gbl...
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

Nov 20 '05 #2
Sebastion,

if I understood you correctly, you want to display a dialog without locking
the windows underneath it. If you want to do that, you can't use MessageBox.
Instead, create a new dialog and display it with "show", not with
"showdialog" - that should work. Of course, in that case, you need a little
bit more effort to put the text into the form.

Klaus

"Sebastian Santacroce" <se*******@ilogic.com> schrieb im Newsbeitrag
news:0b****************************@phx.gbl...
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

Nov 20 '05 #3
Cor
Hi Sebastian,

A little addition to Klaus and Jay,

Throw an event when the checking is done and then put it somewhere in the
logic of your project.

And also put somewhere in your logic that the checking is done in time.

Those two things seems to me more a problem than show the form.

That is why dialogboxes and messagboxes are mostly waiting on an answer.

This is a kind of in my eyes difficult remote processing.

But just a thought maybe you have already the solution for that.

Cor
Nov 20 '05 #4
* "Sebastian Santacroce" <se*******@ilogic.com> scripsit:
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?


You will have to create your own messagebox. Some hints and tips on
doing that can be found here:

<http://groups.google.de/groups?selm=bu22nn%24ar8b7%242%40ID-208219.news.uni-berlin.de>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
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


Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: js | last post by:
Hi all, I currently encounter a problem and it is urgent to me. After calling the MsgBox.Show(), the message box is shown with non-modal mode, what is the possible reason??? This only happen...
4
by: Lakrom | last post by:
Hi to all, how to put msgbox in this asp page, this send me a message Denied permission: 'MsgBox' <% Set Conn=server.createobject("ADODB.connection") Conn.open application("StrConRuta") set rs =...
6
by: Lapchien | last post by:
In this bit of code provided so helpfully by Nath: Private Sub Command118_Click() Dim rs As DAO.Recordset Set db = CurrentDb Set rs = db.openrecordset("IMPORT")
0
by: CFW | last post by:
I use the below code to move to the selected record in a list box to that record in another form: DoCmd.OpenForm "frmWorksheet", acNormal, , , acFormEdit, acWindowNormal rst.CursorLocation =...
7
by: Anne Richmond | last post by:
I have just returned to my first vb.net project after a few weeks and find I have a problem with Msgbox. The commands I added earlier work OK but any new ones fail to show the prompt value...
4
by: | last post by:
I have about 20 MsgBox occurance in by program, which I use to inform the user of the progress of the program, or ask confirmation of an action, or simply to act separators to various parts of the...
7
by: Bob L | last post by:
I've inserted a MsgBox in some VBScript on line 12 of an .asp page and get the following error: Microsoft VBScript runtime error '800a0046' Permission denied: 'MsgBox' /default.asp, line 12 ...
9
by: Ivan Jericevich | last post by:
In my code below at the line 'response' a blip sound is heard and the program exits the sub -- No MsgBox is displayed. What am I doing wrong? If nonNumberEntered = True Then msg = "Enter...
2
by: perkykoala | last post by:
I apologize in advance for being REALLY detailed/verbose. It's the result of staring/tweaking code for too long. Using VB 2005: I need to design a multiple choice test (unfortunately, I can't...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.