...is it possible? The ShowDialog method doesn't do it for me.

Re: Form as MessageBox, without Taskbar-Button? by Chris

Chris
Tue Aug 23 13:57:12 CDT 2005

Is this of any use?

http://blog.opennetcf.org/ctacke/PermaLink,guid,ccd42b42-9ab4-46ba-974f-2b959da7a488.aspx

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate


"wikoh" <wikoh@discussions.microsoft.com> wrote in message
news:E01761D7-54B2-4754-9844-EEB5DF5111BC@microsoft.com...
> ...is it possible? The ShowDialog method doesn't do it for me.



Re: Form as MessageBox, without Taskbar-Button? by wikoh

wikoh
Wed Aug 24 11:03:15 CDT 2005

OK, but that requires the OpenNETCF which I can't figure out how to use!
Should I add SmartDeviceFramework.dll as a Reference? What using directives,
etc?

Re: Form as MessageBox, without Taskbar-Button? by wikoh

wikoh
Wed Aug 24 11:11:07 CDT 2005

Does this translate to the compactframework:

http://www.catch22.net/tuts/msgbox.asp

Re: Form as MessageBox, without Taskbar-Button? by Sergey

Sergey
Wed Aug 24 11:11:29 CDT 2005

You may try this one either (the version without OpenNETCF):
http://blog.opennetcf.org/sbogdanov/PermaLink.aspx?guid=749c4ca6-ef9c-4362-86a1-5a184cc20637

Concerning your question - you have to add reference to
OpenNETCF.Windows.Forms.dll and "using OpenNETCF.Win32;".

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


wikoh wrote:
> OK, but that requires the OpenNETCF which I can't figure out how to use!
> Should I add SmartDeviceFramework.dll as a Reference? What using directives,
> etc?

Re: Form as MessageBox, without Taskbar-Button? by wikoh

wikoh
Wed Aug 24 11:46:17 CDT 2005

That works except that on the Pocket PC 2002 emulator the Caption of the
message form becomes (or appears to become) that of the last used other
window.

At first it is the caption of my program, then if i bring up, say settings,
and close it the message form will now be titled Settings...

But perhaps no one has these kinds of handhelds anymore (that has ony one
window (maximized) at the time)?

Re: Form as MessageBox, without Taskbar-Button? by Sergey

Sergey
Wed Aug 24 11:52:16 CDT 2005

For PocketPC devices just set .Text to "":

Text = "";

dlg.ShowDialog();

Text = WindowTitle;

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


wikoh wrote:
> That works except that on the Pocket PC 2002 emulator the Caption of the
> message form becomes (or appears to become) that of the last used other
> window.
>
> At first it is the caption of my program, then if i bring up, say settings,
> and close it the message form will now be titled Settings...
>
> But perhaps no one has these kinds of handhelds anymore (that has ony one
> window (maximized) at the time)?

Re: Form as MessageBox, without Taskbar-Button? by wikoh

wikoh
Wed Aug 24 12:07:03 CDT 2005

The worst thing is you can still click another app, but the messagebox then
disappesrs (and it has locked my program, being modal) and is only accessible
through ALT-tab.

Perhaps if I could know the calling form? Then I could let the message form
show as non-modal but set the caller to Enabled = false? Bringing up my app
would then bring up the message form aswell, right?

Re: Form as MessageBox, without Taskbar-Button? by Chris

Chris
Wed Aug 24 12:15:12 CDT 2005

No, it doesn't. You really should stick to the design guidelines of the
target you're working with. The reason you're having difficulty is that
you're trying to get the device to do something contrary to what it's
designed to do.

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate


"wikoh" <wikoh@discussions.microsoft.com> wrote in message
news:A20FCA2B-54DC-474B-B2C5-0D3F826D0F34@microsoft.com...
> Does this translate to the compactframework:
>
> http://www.catch22.net/tuts/msgbox.asp