How to avoid that MainScreen is closed when Session Lock


Author
Message
Rainer Kempf, RK
Rainer Kempf, RK
StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)
Group: StrataFrame Users
Posts: 55, Visits: 1.4K
Hello,



How can i avoid that Main-Screen is closed(hidden) when Session locks ?



I was searching around but can't find a Solution.



Also would be interessting to know how do display Exit button (in Loggin Form) for Re-Login.



thanks



Rainer



Reply
Rainer Kempf, RK
Rainer Kempf, RK
StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)
Group: StrataFrame Users
Posts: 55, Visits: 1.4K
Hi Edhy



yes of course



I did following :



In AppMain.Vb







Private Shared Sub ShowLoginAndInitMainForm(ByVal e As ShowLoginAndInitFormEventArgs)



e.ShowMainForm = True





End Sub







and in the mainform i do something like







Private Sub MKSBaseAppWithSecurity_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load



Me.Visible = False

Dim ll_success_login As Boolean = False





Login.LoginFormType = GetType(MKSBaseLoginForm)



#If DEBUG Then

Login.SetLoggedInUser("supervisor", "mks", "")

ll_success_login = True

#Else

ll_success_login = Login.ShowLoginAndAuthUser(True)

#End If







If ll_success_login Then

then do something like enable all controls

Else

then do something like disable all controls

End If





Me.Visible = True



End Sub







that all

and it works fine....



Rainer
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search