473,320 Members | 1,707 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,320 software developers and data experts.

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 7078
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.