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

Home Posts Topics Members FAQ

Setting the height of the caption bar

Hi all,

Is there a way to set the height of the caption bar of a form? I know I
can retrieve the height using the SystemInformati on class, but I'd like
to change it too to make it smaller. The only options I seem to have is
changing the border style to remove the whole caption bar, but that's
not exactly what I want.
Thanks in advance for any leads.

Best regards,
Ruben.
Mar 9 '07 #1
2 1447
On Mar 9, 1:40 pm, Ruben van Engelenburg <rub...@gmail.c omwrote:
Hi all,

Is there a way to set the height of the caption bar of a form? I know I
can retrieve the height using the SystemInformati on class, but I'd like
to change it too to make it smaller. The only options I seem to have is
changing the border style to remove the whole caption bar, but that's
not exactly what I want.
Thanks in advance for any leads.

Best regards,
Ruben.
Ruben:

Beyond changing the FormBorderStyle there is very little you can do to
easily customize the look and feel of the standard Windows Forms
caption bar. You can always try using either "SizableToolWin dow" or
"FixedToolWindo w" attributes which will make your caption bar smaller,
but remove the minimize and maximize buttons.

If this does not provide enough customization I would recommend
creating your own caption bar class. I have done this for a number of
applications and it's pretty straight forward. Create a panel, dock it
to the top, and add the buttons you want. The functionality for a
"Minimize", "Maximize", and "Close" button are all pretty simple. If
you do this then you'll have complete control over any attribute you
want and you'll be able to reuse it in any application you create. If
you need some help writing the code just post back here. Good luck!

~ Justin Creasy
www.immergetech.com
www.immergecomm.com

Mar 9 '07 #2
[snip]
If this does not provide enough customization I would recommend
creating your own caption bar class. I have done this for a number of
applications and it's pretty straight forward. Create a panel, dock it
to the top, and add the buttons you want. The functionality for a
"Minimize", "Maximize", and "Close" button are all pretty simple. If
you do this then you'll have complete control over any attribute you
want and you'll be able to reuse it in any application you create. If
you need some help writing the code just post back here. Good luck!
Hi Justin,

Thanks for your reply. I'm gonna go for your second suggestion and write
my own class for it. That offers me the most customization
possibilities, which is what I need.
Thanks again and if I walk into any problems I'll post back here.

Best regards,
Ruben.
Mar 10 '07 #3

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

Similar topics

0
2125
by: W Dean | last post by:
Hi, I'm have a problem with defining the height of of two different div's (one containing text and another containing a picture) on a site I'm designing. Basically, the height appears to be the same on IE 6, Firefox PR 1 and opera 7.54. However, it seems to be different for the two on the mac ie 5.2 and safari. The URL is here: http://beta.jonathanpurcell.co.uk/projects.asp?g=2&key=11&p=2
21
3991
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does nothing in IE. I'd be greatful for any assistance. Also, if I will have problems the code on Opera or Safari, I'd appreciate any pointers--I don't have a Mac to test Safari. THanks very much, Michael
3
3062
by: Rennie deGraaf | last post by:
Is it possible to force adjacent block elements to have the same height, without specifying that height? In this page (http://pages.cpsc.ucalgary.ca/~degraaf/test/index3.html), I have a bunch of (red-bordered) DIVs containing an image thumbnail and a caption. These DIVs are floated to the left, and I used JavaScript to center them (since there is no float: center and most browsers don't support display: inline-block). I know the...
1
2201
by: Colin Ward | last post by:
Hi. I have a popup modal form which gets part of its caption from code. The part of the caption which is determined from code is the name of the event. For example the caption would be "Add Year for ", where event name is the name of the event for which the user wants to add a year. The event names are all different lengths and sometimes when the form pops up the caption is truncated with the ellpsis(...) Is there a way to determine how...
18
18419
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on a remote update of tables and fields and can't find enough information on these things. Also, how do you index a field in code?
2
1162
by: Daylor | last post by:
is there way to change the height of the caption ?
6
6542
by: kode4u | last post by:
How to use python get my windows box's ip setting type? Dynamic ip, or static ip? If it's static ip, what's the exact value?
8
16097
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list which modifies Application setting section but how to add new item to userSettings ? Andrus.
6
5378
by: slg | last post by:
Is there a simpler way to increase the mdi form caption height? I am following this article but not sure where should i change? I belive its most probably in the WmNCCalcSize TIA http://geekswithblogs.net/kobush/articles/CustomBorderForms.aspx
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
10341
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
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
10095
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,...
0
9954
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8979
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
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.