473,394 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Removing the Titlebar from Windows Form

Is it possible to remove the Titlebar from a Windows Form?

I know I can create a custom region to essentially "hide" the title
bar... but the only problem with that is the fact the the Width /
Height settings of the form aren't the actual width and height, and the
location defined in the properties of the form aren't the actual
location. (i.e. if I use a region that removes the titlebar, and I set
the form's location to (0,0), it will sit lower than 0,0).

Furthermore, it'd be nice if I could make a form that appeared
different actually appear different in design mode.

It seems all of these things are possible. Any clues?

Nov 17 '05 #1
2 17452
Setting FormBorderStyle = None will remove the title bar (at both design and
run time)

Alternatively if you need a border you can set ControlBox = false and Text =
""
which will have the same effect

"blesh" wrote:
Is it possible to remove the Titlebar from a Windows Form?

I know I can create a custom region to essentially "hide" the title
bar... but the only problem with that is the fact the the Width /
Height settings of the form aren't the actual width and height, and the
location defined in the properties of the form aren't the actual
location. (i.e. if I use a region that removes the titlebar, and I set
the form's location to (0,0), it will sit lower than 0,0).

Furthermore, it'd be nice if I could make a form that appeared
different actually appear different in design mode.

It seems all of these things are possible. Any clues?

Nov 17 '05 #2
blesh wrote:
Is it possible to remove the Titlebar from a Windows Form?

I know I can create a custom region to essentially "hide" the title
bar... but the only problem with that is the fact the the Width /
Height settings of the form aren't the actual width and height, and the
location defined in the properties of the form aren't the actual
location. (i.e. if I use a region that removes the titlebar, and I set
the form's location to (0,0), it will sit lower than 0,0).

Furthermore, it'd be nice if I could make a form that appeared
different actually appear different in design mode.

It seems all of these things are possible. Any clues?


Remove the control box and the Text (Caption) and it will appear with no
title bar.
--
Tom Porterfield
Nov 17 '05 #3

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

Similar topics

6
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project...
5
by: Xarky | last post by:
Hi, I am creating a windows form, and when a specified event occurs (button click), I am hiding the windows form and opening a new windows form. When opening the new windows form and closing...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
8
by: Alison | last post by:
Hi, Al I am trying to design a user interface which provides both menus and toolbars for some users to click on whatever they want to do, at the same time, I would like to have a console window...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
2
by: AS | last post by:
Hi, I have a windows form with a background image - set through the forms background image property. The form also has panels and icons on top of it. When this form is loading, there's a...
9
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How...
4
by: =?Utf-8?B?T2xhbg==?= | last post by:
Hi, I'm trying to dynamically remove labels from a windows form in csharp. I have a foreach loop similar to : foreach(Control c in this.Controls) { c.Dispose(); }
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...
0
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...

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.