473,785 Members | 2,575 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Determining the height (in pixels) of a windows title bar.

Max
Hello,

Is there a way to determine the size (height) of a
windows title bar?

I am trying to position a window of an application so
that the top edge of the window aligns with the top edge
of a panel in my form. When I position the application
window in code, it positions correctly, except the bottom
edge of the application's title bar appears at the top of
the panel in my form. I need to add the height of the
application's title bar to my "Y" coordinate value.

Is it possible to determine the height of the title bar?

Thank You,

Max
Nov 20 '05 #1
2 8391
Check SystemInformati on.CaptionHeigh t property.
HTH
Alex

"Max" <an*******@disc ussions.microso ft.com> wrote in message
news:04******** *************** *****@phx.gbl.. .
Hello,

Is there a way to determine the size (height) of a
windows title bar?

I am trying to position a window of an application so
that the top edge of the window aligns with the top edge
of a panel in my form. When I position the application
window in code, it positions correctly, except the bottom
edge of the application's title bar appears at the top of
the panel in my form. I need to add the height of the
application's title bar to my "Y" coordinate value.

Is it possible to determine the height of the title bar?

Thank You,

Max

Nov 20 '05 #2
Max
Thank you Alex . . . that works great !!!

Max
-----Original Message-----
Check SystemInformati on.CaptionHeigh t property.
HTH
Alex

"Max" <an*******@disc ussions.microso ft.com> wrote in messagenews:04******* *************** ******@phx.gbl. ..
Hello,

Is there a way to determine the size (height) of a
windows title bar?

I am trying to position a window of an application so
that the top edge of the window aligns with the top edge of a panel in my form. When I position the application
window in code, it positions correctly, except the bottom edge of the application's title bar appears at the top of the panel in my form. I need to add the height of the
application's title bar to my "Y" coordinate value.

Is it possible to determine the height of the title bar?
Thank You,

Max

.

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
3198
by: Picho | last post by:
Hi all, Is there any .NET way (I am not rulling out API usage) to add button(s) to a form's title bar? I found some non-.NET solutions that did actually work in VB6 but not in the ..NET forms... I tried painting, but the paintaing area provided by the form is only the client area - no visible way to paint on the title bar.
19
6010
by: Lauren Quantrell | last post by:
In Windows XP display Properties/Appearance users can chose between: Windows XP Style or Windows Classic Style. Is there a way in VBA to determine the user's selection? The reason: Toolbars size taller in XP than in Classic so I need to size all those nifty windows sizing commands depending on the user's preference.
0
1030
by: Mark Heathcote | last post by:
can anyone give me some pointers? Q1 - how can i monitor the system (XP) and detect when a dial up has occured via modem and return the connection speed? (I want to be able to prompt when speeds lower than say 30k are detected. This is to trap bad dial ups and connections via mobile phones) Q2 - I also want to monitor the current active window and log the title out to a file, e.g. to produce a log file showing the sequence of applications...
0
995
by: Maruko | last post by:
I can see in much software as photoshop all its toolbar property and others child window are active if the main is active and are inactive if the main is not. How can i fake the windows message to avoid to draw the titlebar of childs inactive when i click on the main? Thanks.
1
3364
by: Chad Miller | last post by:
How do I get the size of a window (form) title bar? - Chad chad@predictiveconcepts.com
2
2259
by: DBC User | last post by:
I would like to have some words in the form title as italic (only some), is it possible to do it? If so could someone give me some pointers? Thanks.
0
1196
by: oded55 | last post by:
Hi, I'd like to be able to change the right click options i am getting regardless of what is the application running, right click today has the followiing options Restore, Move size etc.... is there a way to do this using c# or somehow else? Thanks,
2
4793
by: Aliya | last post by:
Hi, all! Using VB as code-behind in asp.net page... I have a TABLE control which I'm building dynamically. After the table is built, I'm trying to retrieve the HEIGHT property of that table to be able to dynamically position the next elements on the form. However, this control property is coming back as blank every time. How can I get the height of the TABLE control AFTER building it, so I know where to place the next few elements in...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10091
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.