Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: MDI menu enable/disable


Message #1 by "Kumar, Pankaj" <KUMARPA@t...> on Thu, 13 Feb 2003 16:14:10 +0530
I'm not sure what you're asking -- if you mean, "how do I enable or 
disable
a menu item", that's easy:

    mnuFileOpen.Enabled =3D False (or True)

If you mean, "how can I create a scheme for user permissions that allows 
me
to enable or disable menu items as appropriate", then that's a bigger
question.  First, you need to know who is logged on.  Then you need a
permissions data source, where you can go to determine what a particular
user is entitled to see or do.

You'll need a logon dialog that captures a userid and validates it 
against a
userid table, and a userid table whose logical key is the userid where
additional information, such as user type and functional permissions can 
be
maintained.

Pete 

-----Original Message-----
From: Kumar, Pankaj [mailto:KUMARPA@t...]
Sent: Thursday, February 13, 2003 5:44 AM
To: professional vb
Subject: [pro_vb] MDI menu enable/disable


Hi group,

 How I can enable or disable MDI menu based on some condition, say Type. 
 If
user is admin he should be able to see more menus (to get report etc) 
and
for general users limited options

 Thanks,

 Pankaj



**********************************************************************
This message and any attachments are intended for the
individual or entity named above. If you are not the intended recipient,
please do not forward, copy, print, use or disclose this
communication to others; also please notify the sender by
replying to this message, and then delete it from your system.

The Timken Company
**********************************************************************




  Return to Index