After login User1, the main menu is open in main form. Now there are following 2 conditions:
1-User1 will have access to only those Forms where he is granted access by tblRights.According to database (tblRights), User1 has only access to Student Inquiry menu item under Student menu. So the rest of the menu item must be invisible to User1. How to get this solution?
2- After access to only Student Inquiry form, user1 will have only access to View and Save button. Rest of the button must be invisible to User1 untill he is granted access. How to get this solution? ???
tblForms
FormID
|
FormName
|
FormCaption
|
Module
|
1
|
frmStuInquiry
|
Student Inquiry
|
Student
|
2
|
frmStuRegister
|
Student Registeration
|
Student
|
3
|
frmStuAttendance
|
Student Attendance
|
Student
|
4
|
frmStuList
|
Stdent List
|
Student
|
5
|
frmStuPromotion
|
Student Promotion
|
Student
|
tblFormsControl
fCtrlID
|
fCtrlName
|
FormID
|
IsActive
|
1
|
View
|
1
|
1
|
2
|
Save
|
1
|
1
|
3
|
Update
|
1
|
1
|
4
|
Delete
|
1
|
1
|
5
|
Export
|
1
|
1
|
tblRights
RightID
|
GroupID
|
UserID
|
FormID
|
fCtrlID
|
IsRights
|
1
|
2
|
2
|
1
|
1
|
1
|
2
|
2
|
2
|
1
|
2
|
1
|
3
|
2
|
2
|
1
|
3
|
0
|
4
|
2
|
2
|
1
|
4
|
0
|
5
|
2
|
2
|
1
|
5
|
0
|
tblGroup
GroupID
|
G_Name
|
1
|
Admin
|
2
|
User1
|
tblUsers
UserID
|
UserName
|
GroupID
|
1
|
Admin
|
1
|
2
|
User1
|
2
|
Main Menu in the Main Form in the Windows Form
Student
|
Employee
|
Fees
|
Examination
|
Configuration
|
Student Inquiry
|
|
Student Registeration
|
|
Student Attendance
|
|
Stdent List
|
|
Student Promotion
|
|