Results 1 to 8 of 8

Thread: Enabling toolbar buttons [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539

    Post Enabling toolbar buttons [RESOLVED]

    HeY All wonder if you can shed some light on this one

    I have a parent MDI form called MainApp
    contained within this MainApp is a public function which simply gets passed an int ie 1,2,3,4 etc
    then i have a case statment like
    select case blah(ByVal MyValue)

    case 1
    Me.MasterBar.Buttons(0).Enabled = True
    case 2
    Me.MasterBar.Buttons(1).Enabled = False
    etc

    I am calling this function from a form called frmLogin like this
    frmMainApp.DoLogin(IntUserPriv)

    the frmMainApp is defined in a module as a public global variable
    So basically my app opens the main MDI parent and that has onLoad event for frmLogin when user logs in all the checks and stuff is done in the frmLogin and if everything is cool the function doLogin is called with their user type passed in, i know the user type is being passed ok because stick a msgbox in there to test it however it will not set the buttons to either be enabled or disabled,,,, any ideas ????
    Last edited by carlblanchard; Sep 24th, 2003 at 06:59 AM.
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width