Non-intrusive type of dialog

  • Thread starter Thread starter Curious
  • Start date Start date
C

Curious

Hi,

I'll need to create a warning dialog with a simple message and an "OK"
button.

I want everything continue to run without the interruption despite
this dialog. That means, this dialog will stay on the screen until the
user clicks on the "OK' button. However, everything else continues
even before the user clicks on the "OK"' button.

Anyone can advise me on what type of form or dialog to use in order to
achieve this behavior?
 
Anyone can advise me on what type of form or dialog to use in order to
achieve this behavior?

Use an ordinary form and set the border style to non-sizeable and turn off
the control box. Then use Show() instead of ShowDialog().
 
Hi Jeff,

There's a property for the form called "FormBorderStyle". Is this what
you mention as "border style"? It seems that in order to set the
border style to non-sizeable, I'll need to pick among the following
options:

FixedSingle
Fixed3D
FixedDialog
FixedToolWindow

Which one shall I pick?
 
Hi Jeff,

There's a property for the form called "FormBorderStyle". Is this what
you mention as "border style"? It seems that in order to set the
border style to non-sizeable, I'll need to pick among the following
options:

FixedSingle
Fixed3D
FixedDialog
FixedToolWindow

Which one shall I pick?

That's the property - I usually go for FixedDialog but I've not really
studied the differences!
 
Jeff,

Thanks!

But one more question: Don't you think that I can show a dialog on a
new thread in order for it not to affect other processes?
 
Jeff,

Thanks!

But one more question: Don't you think that I can show a dialog on a
new thread in order for it not to affect other processes?

Why would you want to do that, when by using Show instead of
ShowDialog the thread doesn't block?
 
Why would you want to do that, when by using Show instead of
ShowDialog the thread doesn't block?

Good question - It's not a typical windows application. It's a back-
end plug-in on top of an existing application.

By default, it doesn't allow me to create UI from the back-end. A
naive way to create a dialog (even by using "Show") will result in a
blank dialog (the text and the buttons are not visible). I'm just try
to see what options I have here.
 
Back
Top