vb.net - close a form without using invoker method? -


hi have main form has several mdi forms . have user authentication check if users given rights mdi form . happens on form load , if user not have rights close. wanted ask wether there method other invoker method.

 me.hide  me.begininvoke(new methodinvoker(addressof me.close)) 

since interface mdi, assume you're using menu or button, @ least click event, open form. put authenmtication in click event handler before open form, , if authentication fails notify user of instead of opening form. not more efficient use of resources, more secure since system lag leave information on form visible before closed.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -