[urgent] MsgBox is non-modal.

J

js

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 in the VB project,
works fine in C# project.

SystemModal and ApplicationModal MsgBoxStyle were all tried and there
was no help.



-jason
 
P

Peter van der Goes

js said:
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 in the VB project,
works fine in C# project.

SystemModal and ApplicationModal MsgBoxStyle were all tried and there
was no help.



-jason
Please show the code and circumstances. The default behavior of
MessageBox.Show() is to produce an application model message box, IME. I
also tested MsgBox() without incident. It, too, seems to default to
application modal.
 
J

js

A similiar thread with more details was posted under
....dotnet.framework.winform group, below contains some useful information
that may help.

I also made a very simple usercontrol which could produce the problem,
please let me know if you need it.



-jason



--julie wrote--------

I have put the question in as a possible bug.
Will post back as soon as I have some info for you.
I have seen other issues posted about the valuechanged event and msgbox.
julie



js said:
Julie,

Yes, only the DateTimePicker has the issue. The reason I just choose
this control is I was constructing a custom dropdown control which I believe
has the similar window relationship as the DateTimePicker control. My
customer reported the non-modal problem to me and I immediately checked the
DateTimePicker, "luckily" it has the same problem.

I was trying to work around it but with no result, whatever both the
MsgBoxStyle.SystemModal and the MsgBoxStyle.ApplicationModal do not take
effect in this scenario. I have no idea whether this is a bug in the .NET
Framework.

Any .NET MVP could help?



-jason





pass
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top