Hi all,

I've got a typical windows form application with a login form, when I
login, the login form will be hidden and a new window will appear.

For this, I'm using .Show() method, and not .ShowDialog() because
there's a chance of reloading a different ini file during login and I
want to allow the user to reuse the login form (and it's credentials),
and when the user reloads the login form will became visible and the
the other window will became hidden.

If he really tries to login again then I will kill the new window and
create a new one.

This all works fine, the problem happens when I try to minimize the
login form, a small box appears in the left corner just like a mdi
window when we minimize it on the main form.

I would like for this "box" not to appear, and the form simply
disapears and when I press the on the icon of the taskbar the window
would appear again, just like any windows form application.

Any help?

Thanks,

Luis Miguel Pinho

RE: Login windows -> Child form, strange behaviour on minimize by Edmire

Edmire
Thu May 19 12:31:02 CDT 2005

Private Sub myLoginForm_Deactivate(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Deactivate
Me.ShowInTaskbar = False
End Sub

Private Sub myLoginForm_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
Me.ShowInTaskbar = True
End Sub

"lpinho@gmail.com" wrote:

> Hi all,
>
> I've got a typical windows form application with a login form, when I
> login, the login form will be hidden and a new window will appear.
>
> For this, I'm using .Show() method, and not .ShowDialog() because
> there's a chance of reloading a different ini file during login and I
> want to allow the user to reuse the login form (and it's credentials),
> and when the user reloads the login form will became visible and the
> the other window will became hidden.
>
> If he really tries to login again then I will kill the new window and
> create a new one.
>
> This all works fine, the problem happens when I try to minimize the
> login form, a small box appears in the left corner just like a mdi
> window when we minimize it on the main form.
>
> I would like for this "box" not to appear, and the form simply
> disapears and when I press the on the icon of the taskbar the window
> would appear again, just like any windows form application.
>
> Any help?
>
> Thanks,
>
> Luis Miguel Pinho
>
>

Re: Login windows -> Child form, strange behaviour on minimize by lpinho

lpinho
Fri May 20 05:43:20 CDT 2005

This doesn't work very well, my application gets locked :(

I tried a different thing, now the login has the showIntaskbar property
set to false when the main window opens and this has this property form
set to true, the problem is that, when I set the property showIntaskbar
of the login set to false my application will no longer appear in the
windows task manager list of applications, it only appears in the
process list.

Can I force my application to appear in the application list?

Thanks,

Luis Miguel Pinho