Size of the explorer window Title bar in C#

Is there a way in C# that i can use to get the size of the titlebar of the window (windows explorer window) 
i'm cutting the form for making good interface using regions and graphicPath and so. i did well & every thing is ok in windows 2000 while in windows Xp where the theme is different and the size of the titlebar differs the cutting is performed in a wrong way. 
i get the size of the title bar of windows 2000 explorer windows by measure :( 
i still wonder is there a way in C# i can use to get the size of the titlebar. 
thx all


Answer this question

Size of the explorer window Title bar in C#

  • silkkeng

    Check out the SystemInformation class. Specifically, the SystemInformation.CaptionHeight property should get you what you need. 
  • asureus

    thx alot .... Mr. Ken

  • Size of the explorer window Title bar in C#