Dialog with no TitleBar: is it possible?

  • Thread starter Thread starter Roland
  • Start date Start date
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
 
How exactly are you creating the form without a title bar? I couldn't
reproduce the problem.

-sb
 
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
 
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
 
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
 
Back
Top