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? 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?
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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();
}
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
| |