Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

get all of forms in project before loaded

$
0
0

to have levels of user access for the users:

I have a form. it shows all of the controls exist in forms of win-project. until admin user can manage the controls in app by marking checkboxList.

I plan separate forms by Dictionary. Like:

Dictionary<clssMenu_Item,List<clssMenu_Item>>

clssMenu_Item save properties of one control in a form.

publicclass clssMenu_Item{publicstring name;//control's namepublicstring text;//control's textpublicstring strKey;//Example: in 'MbtnAcc' = 'A' is strKey}

so there is 2 levels in dictionary:

  • btn1
    • btn1-1
    • btn1-2
  • btn2
  • btn3

btn1 - btn3 are in form A.

btn1-1 and btn1-2 are buttons in Form B, by clicking on btn1 from Form A.

I took a look at http://support.microsoft.com/kb/815707 but wasn't useful for me. because declare a global variable and in this global variable exist forms which had opened before. so I don't have access to all of the forms in project.

I will glad to see your opinions...


امیدوارم همیشه بروز باشید I hope always be up2date


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>