V
Voi Coi
Hi,
How to set owner when showing a modal (or modaless) form with
Show/ShowDialog?
Thanks,
How to set owner when showing a modal (or modaless) form with
Show/ShowDialog?
Thanks,
"holder"
of a control (or a form). If you do "frm.Parent = this;" you will have
your
dialog window "embedded" into the main form, underneath all the
controls...
Since the "Owner" property will only be available in .Net CF 2.0, how can
I
do it using APIs ?
With the keyboard, do the Alt-Tab (task manager) key sequence, or with the
emulator, right-click the Taskbar to launch the task manager. Now, you see
both windows, the main AND the dialog. Switch to the Main and you're
stuck!
(Atl-Tab, switch to the dialog and you're not stuck anymore.)
It's as if the "FixedDialog" style has no effect on the window style. The
border is always 1 pixel wide (not 3D), there's always an icon, etc. In
fact,
there's no difference between the standard window and the dialog window.
Can I change this? (I mean, can I set a form, using a P/invoke API, to be
"not top-level"?)
If the shell overrides the window style, then why do the C++ forms are
still
looking 3D (try Microsoft Word Viewer, then open the About box. A nice 3D
window that doesn't appear in the Task Manager list... The same is true
with
Wordpad and the Paragraph dialog.)