Dialog with no TitleBar: is it possible?

R

Roland

Is it possible to have a form with no titlebar (caption) that shows as a
dialog?
When I create form with no titlebar and call its ShowDialog method, it shows
up briefly closes immediately. I couldn't find any documentation onthis
behavior and didn't find any constraint concerning the fact a form needs a
titlebar to be useable as a dialog.
Can anybody shed some light on this? Tia. Roland
 
S

sb

How exactly are you creating the form without a title bar? I couldn't
reproduce the problem.

-sb
 
R

Roland

to have a form without a titlebar, create a form and set
..text = ""
..controlbox = False
that's all.

Then instantiate it and call its method ShowDialog
When you do this with text="" and text="anything else", you'll have a
totally different behaviour.
Roland
 
S

sb

From my tests, it works fine. I should note that I'm using version 2.0 of
the framework. To be clear, I created a secondary form with .Text = "" and
..ControlBox = false. From my main form I simply created the secondary form
and called ShowDialog().

-sb
 
R

Roland

It is possible that it works (again) in 2.0. Actually, in my search for an
explanation, I stumbled on a message thread wherein somebody was reporting
the fact that it worked well in version 1.0 of the framework but didn't
anymore in 1.1. However, as far as I know, this has never been reported or
acknowledged as a bug (which I consider it to be).
Roland
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top