Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need the real top of the Form

Status
Not open for further replies.

tibberous

Programmer
Nov 2, 2006
8
US
I need to know where the top of the window is, but Form->Top gives me the top of the window plus the height of the title bar and menu bar. Anyone know how I can either get the get the top of the window or find the height of the title bar and menu bar?
 
I went back over the problem I was having and realized I had asked for the wrong thing. My problem is not that I need the Forms top, but rather that I need my objects top to start at the top of the window and not right after the title and menu bars. Alternatively, I just need to know the height of the title and and menu bar.
 
Never mind, got it.

Form1->Height - Form1->ClientHeight

Thanks
 
Glad we could help. ;-)


James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top