Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all!

i have an application consist of ten buttons

and their visibility is false by default

when form load by user1 has access for three buttons

and user 2 has five buttons access

user3 has one button access

user4 has all button access

i set their visibility regarding user

but the problem here is i want to set location of buttons for each user to middle of screen
Posted

1 solution

So, you iterate over them and set their position. Iterate over all your buttons and position them one at a time, if they are visible. Where are you stuck ?
 
Share this answer
 
Comments
kami124 10-Aug-11 2:46am    
this i want to do programittacially

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900