kerem

kerem

  • NA
  • 77
  • 0

re-call login form from main form menu item,BUT HOW?

Oct 28 2010 9:02 PM
hi all,

i have quite question.i have a small application.but there is a problem with it.i have a login form and main form(it is not an MDI form,just normal form).also i have got menu authentication with user who has got his own menu rights.if admin,he sees all menu rights.but if he is a user,he has rescricted rights not all of menu rights.

after i have loginned with correct username and password,i press OK button and close with Close() method and open main form and load menu rights with user.here is the problem:

When i call login form for a second time,i type username and password again and then press OK button,program doesnt load my main form for the new user rights and menu rights.after i pressed OK button on login form,it calls main form newly opened with new user and menu rights.BUT it doesnt?

i tried to call my login form from main form constructor or load event,but it doesnt work.

How could i do something like that? please help

thanks in advance.

Kerem

Answers (2)