Login screen do not get focus


Author
Message
Sachin Saxena
Sachin Saxena
StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)
Group: Forum Members
Posts: 7, Visits: 23
Hi,

I created a custom login form, using StrataFrame login form. While login form displays, cursor placed correctly in the username filed but user could not type it because screen did not get focus.



How can I got focus on screen.
Reply
Philipp Guntermann
Philipp Guntermann
StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)
Group: Forum Members
Posts: 141, Visits: 263
Hi Sachin,

i had the exact same issue as you described (using my own login-form (not Strataframe Login-Form)).

I was finally able to resolve that by calling:

this.Owner.Activate();

within the Login-Forms OnLoad Method.

Make sure you set MyLoginForm.Owner = this; within the MDI-Parent.

Still not sure what causes the application do loose focus, but the workaround above solves it at least. Btw, that was the only Child-Form in my Application with that issue.

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