Messagebox displayed on form

  • Thread starter Thread starter ITALstudio s.r.l.
  • Start date Start date
I

ITALstudio s.r.l.

Hi,

I need to know if on a .NET form a messagebox is displayed.

Someone has an idea?

Thanks.
 
Ital,

A messagebox is itself a form, so cannot be displayed on a form.
You can however use a panel to fake that.

I hope this helps?

Cor
 
The problem is that I can't close a form if there is a messagebox displayed
on form.
Therefore, if there is a messagebox on the form I don't close the form.
But I don't know a correct way to know if a messagebox is displayed and
moreover I can't use a panel.
I hope to have cleared up better the problem.
 
Ital,

It is normal that you first have to close the messagebox before you close.
Or do you want to close using the messagebox.
(Show us how you show the messagebox, there are more possibilities)

Cor
 
ITALstudio s.r.l. said:
I need to know if on a .NET form a messagebox is displayed.

Well, shouldn't you know when you show a messagebox in code?
 
Hi,
Unfortunately, I can't know when on the form is displayed a messagebox.
 
ITALstudio s.r.l. said:
Unfortunately, I can't know when on the form is displayed
a messagebox.

Why not? The messagebox will block execution until it is closed. Can you
describe your scenario in more detail?
 

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

Back
Top