0

HI all again here with some problem. I m making a project in which i made a form MDI container and on running the application login screen opens within the Main form(MDi).
I want that until user logins he should not b able to access main form or its options.
i have tried
main.Enabed = false

3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Jx_Man
0

First Dont make the Login form as MDI Child.

When Showing Login Form Use ShowDialog () Instead of Show() to Show the Form Modally and Set Owner is MDI

Ex

LoginForm.ShowDialog(MDIMainForm);
0

Sorry for providing insufficient information. My purpose was that nobody should be able to move the form from its location to other location in the application.
Wt should i do for that

0

On Form Properties, Set FormBorderStyle = None.
It will make your form haven't border and not able to move.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.