Non-intrusive type of dialog

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?
 
J

Jeff Gaines

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().
 
C

Curious

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?
 
J

Jeff Gaines

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!
 
C

Curious

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?
 
J

Jack Jackson

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?
 
C

Curious

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.
 

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