hi
i have username and password
form and i add in it 5
checkboxs each one for an item in a
menustripitem in another
formquestion is: how can i change the enablity of the items in the menustripitems by checking the checkbox?
i try many code but the result was wrong
i write this code in the form that contain the menustrip whish let say form1:
CODE
if form2.checkbox1.checked=true then
MAINtoolstripmenuitem.enabled=true
else
msgbox("sorry u don't have permission to enter to the MAIN")
end if
CODE
if form2.checkbox2.checked=true then
USERSANDPERMISSIONStoolstripmenuitem.enabled=true
else
msgbox("sorry u don't have permission to enter to the USERSANDPERMISSIONS")
end if
i feel the code should be do it correct but it not coz when i click the MAINtoolstripmenuitem or USERSANDPERMISSIONStoolstripmenuitem it just give me the massage
please where is the wrong
thanks