473,466 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do you do a form with no titlebar

It must be top level. I can not write components with this version of C#
(less than Professional). I do want a non-resizing border. I kept looking
for a "ShowTitlebar" property (or something like that), but never found it.
Do I need to write a control? That would not let me have the layout
options. Furthermore, my existing code is written for a form, not a
control. I have no idea what would be needed to convert.

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)
Nov 16 '05 #1
6 7085
Will Pittenger wrote:
It must be top level. I can not write components with this version of C#
(less than Professional). I do want a non-resizing border. I kept looking
for a "ShowTitlebar" property (or something like that), but never found it.
Do I need to write a control? That would not let me have the layout
options. Furthermore, my existing code is written for a form, not a
control. I have no idea what would be needed to convert.

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)

Create a Form, set the "ControlBox","MaximizeBox","MinimizeBox" to
false. Set "Text" to empty string. Then, titleBar will disappear.
--
Jacky Kwok
ja***@alumni.cuhk.edu.hk
ja***@compose.com.hk
Nov 16 '05 #2
Hi Jacky,
Will Pittenger wrote:
It must be top level. I can not write components with this version of C#
(less than Professional). I do want a non-resizing border. I kept
looking
for a "ShowTitlebar" property (or something like that), but never
found it.
Do I need to write a control? That would not let me have the layout
options. Furthermore, my existing code is written for a form, not a
control. I have no idea what would be needed to convert.

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)

Create a Form, set the "ControlBox","MaximizeBox","MinimizeBox" to
false. Set "Text" to empty string. Then, titleBar will disappear.


Very nice trick!
(MaximizeBox & MinimizeBox don't have to be set to false till
ControlBox is set to false)

I allways changed the Form.FormBorderStyle property to disable titlebar.

Regards

Marcin
Nov 16 '05 #3
Just set the FormBorderStyle property to None

HTH
fbhca

Nov 16 '05 #4
I still need the border.

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)
"fbhcah" <an*******@discussions.microsoft.com> wrote in message
news:09**********************************@microsof t.com...
Just set the FormBorderStyle property to None.

HTH,
fbhcah

Nov 16 '05 #5
I still need the border.

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)
"Marcin Grzębski" <mg*******@void.taxussi.com.pl.void> wrote in message
news:c4**********@mamut1.aster.pl...
Hi Jacky,
Will Pittenger wrote:
It must be top level. I can not write components with this version of C# (less than Professional). I do want a non-resizing border. I kept
looking
for a "ShowTitlebar" property (or something like that), but never
found it.
Do I need to write a control? That would not let me have the layout
options. Furthermore, my existing code is written for a form, not a
control. I have no idea what would be needed to convert.

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)

Create a Form, set the "ControlBox","MaximizeBox","MinimizeBox" to
false. Set "Text" to empty string. Then, titleBar will disappear.


Very nice trick!
(MaximizeBox & MinimizeBox don't have to be set to false till
ControlBox is set to false)

I allways changed the Form.FormBorderStyle property to disable titlebar.

Regards

Marcin

Nov 16 '05 #6
That works -- but only at design time. The titlebar is still present at
runtime. Besides, since my users will still want to access select commands
while the program is minimized, I need to add stuff to the system menu.
Once you squelch that control box, the system menu is dropped. Is there a
way to respond to right-clicks on the taskbar button?

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)
"Jacky Kwok" <ja***@hkcompose.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Will Pittenger wrote:
It must be top level. I can not write components with this version of C# (less than Professional). I do want a non-resizing border. I kept looking for a "ShowTitlebar" property (or something like that), but never found it. Do I need to write a control? That would not let me have the layout
options. Furthermore, my existing code is written for a form, not a
control. I have no idea what would be needed to convert.

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)

Create a Form, set the "ControlBox","MaximizeBox","MinimizeBox" to
false. Set "Text" to empty string. Then, titleBar will disappear.
--
Jacky Kwok
ja***@alumni.cuhk.edu.hk
ja***@compose.com.hk

Nov 16 '05 #7

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

Similar topics

3
by: p s | last post by:
hi can someone tell me how to ensure the height of my window is always exact? (excluding titlebar) in VB6 e.g. if i set the form to 300 pixels, then the total height of the form takes into...
2
by: PC Datasheet | last post by:
I have a pop-up form with a combobox. In the form's open event I dropdown the combox's list. I have everything on the form locked down so the user can not collapse the combobox by clicking...
2
by: Gregory Hawke | last post by:
What would be the easiest way of painting a titlebar in a form? Setting the background property of a derived System.Windows.Forms.Form only paints the client area. I need to paint the frame as...
6
by: Will Pittenger | last post by:
It must be top level. I can not write components with this version of C# (less than Professional). I do want a non-resizing border. I kept looking for a "ShowTitlebar" property (or something...
2
by: blesh | last post by:
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 /...
104
by: Colin McGuire | last post by:
Hi, is there a way to show a form without a titlebar (and therefore no control box/minimize box/title etc) but still have it appear looking like 3D? The property FormBorderStyle to None - this...
4
by: Sam Marrocco | last post by:
Is it possible to place controls such as a checkbox or button in the titlebar of a form? -- ================================================================== Sam J. Marrocco Sr. Visual...
1
by: JohnR | last post by:
I have a form that is presented in an mdi child window. If the user hits exit or the X button on the titlebar of the mdi child form, that form's "closing" event fires and in that event I check to...
0
by: Mystique | last post by:
Hello I have a problem with drawing of a form....in more detail: I have a main form that holds more inner forms inside it. Each of these forms contain a main user control which also hold 5 or 6...
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
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...
1
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...
0
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.