General discussion

  • Creator
    Topic
  • #2248109

    Enabling toolbar in a VB.NET program

    Locked

    by m_umoetuk ·

    Hi guys,

    I am a VB.NET newbie and I am stuck trying to enable a toolbar in my program. I have a toolbar with some buttons on it. I have disabled the toolbar in design but I want to enable it when the user has successfully logon. Can anyone help? sample code will be highly appreciated.

All Comments

  • Author
    Replies
    • #3223770

      well..

      by shellbot ·

      In reply to Enabling toolbar in a VB.NET program

      i’ve no code samples, and i’ve no time right now to type any up for you.

      How far have you gotten with it?

      off the type of my head, psydo-code (won’t work in program):

      Pass your logged in status to a variable, for example:

      myLogInResult

      (in your log in screen, pass the value to myLogInResult. True if they logged in successfully, False if not)
      then check against it..

      if myLogInResult=true
      then
      myToolBar.enabled = true

      Sorry,I know thats pretty basic, but thats all you really have to do..and i’ve to run and get some work done.

Viewing 0 reply threads