Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 How to Create Runtime Menus >

Author  Topic 

Aamir
Starting Member

14 Posts

Posted - 2004-07-01 : 06:45:30

Hi,
i want to add menus at run time to my vb form on the basis of user logging in....

Can someone assist me in this..

SoftGuru

JasonGoff
Posting Yak Master

158 Posts

Posted - 2004-07-01 : 07:33:30
Assuming VB6...

Easiest method is add the items to the menu at design-time and uncheck the Visible checkbox.
Then, in your code, when you evaluate the user's login credentials, set the Visible property of the relevant menu items to TRUE.
Go to Top of Page

Aamir
Starting Member

14 Posts

Posted - 2004-07-05 : 00:44:23
Thanks,
I have already did this. but what i really want is to check a user login from data and from database i get that user rights and populate menu on those rights..

i hope u understand what i want....



SoftGuru
Go to Top of Page

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2004-07-05 : 01:56:45
Hi Aamir,
Then what Jason said is probably exactly what you need.

Add all items to the menu at design time (with visible property set to false).
Once the user has logged in - determine which menu items should be visible to him and set these items visible property to true.


Duane.
Go to Top of Page
   

- Advertisement -