Non-full screen dialog box in Windows Mobile?

J

jminiman

I know Chris Tacke posted about making standard WinForms into non-full
screen, and I see that now CF.NET 2.0 supports this. However, in
terms of dialog boxes, shown by calling ShowDialog, this functionality
does not exist. I am trying to port a Windows CE CF.NET application
to Windows Mobile, and my dialogs look terrible!

http://www.codeproject.com/ce/nonfullscreendialog.asp has an MFC class
to achieve this; has anyone come up with a managed dialog or managed
workaround that enables partial-screen dialog boxes?
 
J

jminiman

I know Chris Tacke posted about making standard WinForms into non-full
screen, and I see that now CF.NET 2.0 supports this. However, in
terms of dialog boxes, shown by calling ShowDialog, this functionality
does not exist. I am trying to port a Windows CE CF.NET application
to Windows Mobile, and my dialogs look terrible!

http://www.codeproject.com/ce/nonfullscreendialog.asphas an MFC class
to achieve this; has anyone come up with a managed dialog or managed
workaround that enables partial-screen dialog boxes?

I figured it out...somehow, because I was using inheritancy, the
FormBorderStyle was being re-established although in the designer, it
was set to None. When I forced FormBorderStyle to None, the message
box came up as a proper partial window.
 
G

Guest

Lots of people want this type of functionality often a messagebox style
window that you can click 'n hold the title bar to move just like the
desktop. But on Windows Mobile it is not advisable. In fact Microsoft
discourages it even though you see it in many apps today.

If you want your app to be certified then it won't pass if it has these
custom style windows.

I never use these style windows, one of the reasons is it looks clunky on
small devices. It is much cleaner to use a full Window.

See Microsoft's Windows Mobile 5 design guidelines for more information
here: http://msdn2.microsoft.com/en-us/library/ms879586.aspx
 

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