By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,939 Members | 1,559 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,939 IT Pros & Developers. It's quick & easy.

How do you do a form with no titlebar

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
Just set the FormBorderStyle property to None

HTH
fbhca

Nov 16 '05 #4

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.