By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,998 Members | 2,773 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,998 IT Pros & Developers. It's quick & easy.

How to add Menus to MDI Form during run time in VB 6.0?

P: 10
Hi to all,
I have added an MDI Form. Now I need to call the Menus that are in the database for respective User. My table's fields are as follows:
UserId
MenuName
Status

I have to display only those menus whose status is active for the particular(logged) user.

Actually there is a application with this feature running. But I dont ve source code. I need to develop the whole application. So I need help....
Jul 11 '08 #1
Share this Question
Share on Google+
4 Replies


debasisdas
Expert 5K+
P: 8,127
u can design the menus at designtime and enable / disable them at run time.
Jul 11 '08 #2

P: 10
u can design the menus at designtime and enable / disable them at run time.

Ya, I know that procedure.. But the requirement is to fetch those names from the table only... I should not include them in the Design Part.... Plz Help
Jul 12 '08 #3

9815402440
100+
P: 180
hi
make control array of a menu and use load statement to load menus at runtime.
e.g. Load mnu(1)
mnu(1).Visible = True
mnu(1).caption = "my Caption"

regards
manpreet singh dhillon
Jul 12 '08 #4

P: 10
hi
make control array of a menu and use load statement to load menus at runtime.
e.g. Load mnu(1)
mnu(1).Visible = True
mnu(1).caption = "my Caption"

regards
manpreet singh dhillon

Can you explain it in depth?
Bcoz I need to take the Caption from the table. While this is the case, how can I add Name(Name = Below Caption in the Menu Editor in the MDIForm) to a particular Caption ?
Jul 14 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.