|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Dialog with no TitleBar: is it possible?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 Show quote "Roland" <roland.demees***@skynet.be> wrote in message news:u7xfVNgZGHA.1352@TK2MSFTNGP05.phx.gbl... > 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 > 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 Show quote "sb" <stormfi***@yahoo.com> wrote in message news:ufurW0gZGHA.5004@TK2MSFTNGP02.phx.gbl... > How exactly are you creating the form without a title bar? I couldn't > reproduce the problem. > > -sb > > "Roland" <roland.demees***@skynet.be> wrote in message > news:u7xfVNgZGHA.1352@TK2MSFTNGP05.phx.gbl... >> 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 >> > > 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 Show quote "Roland" <roland.demees***@skynet.be> wrote in message news:%23hBF9ZiZGHA.504@TK2MSFTNGP03.phx.gbl... > 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 > > "sb" <stormfi***@yahoo.com> wrote in message > news:ufurW0gZGHA.5004@TK2MSFTNGP02.phx.gbl... >> How exactly are you creating the form without a title bar? I couldn't >> reproduce the problem. >> >> -sb >> >> "Roland" <roland.demees***@skynet.be> wrote in message >> news:u7xfVNgZGHA.1352@TK2MSFTNGP05.phx.gbl... >>> 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 >>> >> >> > > 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 Show quote "sb" <stormfi***@yahoo.com> wrote in message news:OuYZ6xiZGHA.3880@TK2MSFTNGP04.phx.gbl... > 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 > > "Roland" <roland.demees***@skynet.be> wrote in message > news:%23hBF9ZiZGHA.504@TK2MSFTNGP03.phx.gbl... >> 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 >> >> "sb" <stormfi***@yahoo.com> wrote in message >> news:ufurW0gZGHA.5004@TK2MSFTNGP02.phx.gbl... >>> How exactly are you creating the form without a title bar? I couldn't >>> reproduce the problem. >>> >>> -sb >>> >>> "Roland" <roland.demees***@skynet.be> wrote in message >>> news:u7xfVNgZGHA.1352@TK2MSFTNGP05.phx.gbl... >>>> 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 >>>> >>> >>> >> >> > > |
|||||||||||||||||||||||