layout question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
DermVision
 
At which point in your code are you checking these bounds? If it is in a
form code, does it have a MainMenu control?
 
Back
Top