Hello
I put my Options on e separated form and want to lock the focus on it until
user click ok or cancel, i mean deactivate the main form when option form is
shown (like IE option or most of the windows applications).
how`?

Re: how to lock focus of a form by hirf-spam-me-here

hirf-spam-me-here
Tue Jun 22 12:13:11 CDT 2004

* "BMax" <Blueman_blog[AT]yahooDOTcoDOTuk> scripsit:
> I put my Options on e separated form and want to lock the focus on it until
> user click ok or cancel, i mean deactivate the main form when option form is
> shown (like IE option or most of the windows applications).
> how`?

\\\
Dim f As New OptionsForm()
f.ShowDialog()
f.Dispose()
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Re: how to lock focus of a form by Morgan

Morgan
Tue Jun 22 15:27:35 CDT 2004

You need to set the formborderstyle property to FixedDialog as well.

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:2jr7tqF14lpe4U7@uni-berlin.de...
> * "BMax" <Blueman_blog[AT]yahooDOTcoDOTuk> scripsit:
> > I put my Options on e separated form and want to lock the focus on it
until
> > user click ok or cancel, i mean deactivate the main form when option
form is
> > shown (like IE option or most of the windows applications).
> > how`?
>
> \\\
> Dim f As New OptionsForm()
> f.ShowDialog()
> f.Dispose()
> ///
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>