If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > Loading and unloading forms

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-17-09, 07:51
rhoy21 rhoy21 is offline
Registered User
 
Join Date: Aug 2009
Posts: 3
Loading and unloading forms

im working with a new program and im using visual basic 6 as the language and ms access as database... iam new in vb6.. so can anyone give me an idea to solve my first problem in developing a library management system... at first it start at login in of the user if it a member or the adminastrator of the library... so i have the main form when it load, thier are certain control that is invinsible and disable... then when a user login a member specially the control that is invinsible will be visible and the disabled control will be enable ... is there someone getting the idea... Pls i really need help out here
Reply With Quote
  #2 (permalink)  
Old 09-24-09, 16:04
rum63 rum63 is offline
Registered User
 
Join Date: Sep 2008
Posts: 5
Thats not a lot to go on but a generic piece of code could look like this
If USER=SomeAdminUser then
admincontrol1.visible = True
admincontrol2.visible = True
adminbutton1.enabled = true
else
admincontrol1.visible = False
admincontrol2.visible = False
adminbutton1.enabled = False
End If
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On