Groups | Blog | Home
all groups > dotnet compact framework > march 2006 >

dotnet compact framework : layout question



dermite
3/21/2006 10:38:46 AM
Folks,

For a Pocket PC (CF .NET 2.0) application, I'd like to be able to determine
programmatically the location of the top of the menu bar at the bottom of the
screen. No doubt this problem has some perfectly obvious solution, but for
the life of me I can't figure out what it is.
Screen.PrimaryScreen.WorkingArea takes into account the top menu bar, but not
the bottom one. That is, Screen.PrimaryScreen.WorkingArea.Top !=
Screen.PrimaryScreen.Bounds.Top, but Screen.PrimaryScreen.WorkingArea.Bottom
= Screen.PrimaryScreen.Bounds.Bottom. This doesn't seem right. An explanation
would be much appreciated.

TIA,

Matthew Fleming
Alex Feinman [MVP]
3/22/2006 2:01:44 PM
At which point in your code are you checking these bounds? If it is in a
form code, does it have a MainMenu control?

[quoted text, click to view]
AddThis Social Bookmark Button