Discussion Locked

Enabling toolbar in a VB.NET program

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

1 reply

by shellbot

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.

This discussion is closed to new replies.