P
pyda001
Hi yall!
I have created an image selection dropdown editor for use in a
PropertyGrid. My selector form is called dropdown by a
IWindowsFormsEditorService and so far it's all sweet.
On my selector form I have placed a lot of pictures the user can select
from. I have also placed a button with "From File..." that opens an
OpenFileDialog (Remember that this is still in the dropdown dialog form
of the PropertyGrid). The problem is that when the "From File..."
button is clicked, ShowDialog() is called, the OpenFileDialog opens and
gets focus, and the selector form DISAPPEARS. As a second effect, the
OpenFileDialog stays topmost, yet the application can be used
underneath.
How can I keep the dropdown UITypeEditor visible after the
OpenFileDialog.ShowDialog() call, and yet make both controls disappear
if the user clicks somewhere else on the screen or presses esc?
Thanks!
- Peder -
I have created an image selection dropdown editor for use in a
PropertyGrid. My selector form is called dropdown by a
IWindowsFormsEditorService and so far it's all sweet.
On my selector form I have placed a lot of pictures the user can select
from. I have also placed a button with "From File..." that opens an
OpenFileDialog (Remember that this is still in the dropdown dialog form
of the PropertyGrid). The problem is that when the "From File..."
button is clicked, ShowDialog() is called, the OpenFileDialog opens and
gets focus, and the selector form DISAPPEARS. As a second effect, the
OpenFileDialog stays topmost, yet the application can be used
underneath.
How can I keep the dropdown UITypeEditor visible after the
OpenFileDialog.ShowDialog() call, and yet make both controls disappear
if the user clicks somewhere else on the screen or presses esc?
Thanks!
- Peder -