Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

password protect vb code

Status
Not open for further replies.

vaughn9

Technical User
Sep 23, 2001
183
In excel I can password protect my macro code through vba project properties where there is a protection property.
How do I passwork protect my visual basic code in visual basic. I looked for a protection property but have not seen any except in source safe. I need to protect my code even if it is not added to source safe.
 

If you are using a Win2K computer you could create a directory and set the security permission on it to only include you. So if another user who is allowed to log onto your computer does log on they would not have access to your directory.
 
Are you saying that there is no option within visual basic itself which would allow the user to password protect a project?
 


Type in

password protecting a visual basic project

in your MSDN or at Microsoft and see what you get. The closest thing that I found was a 3rd party dll for SQL server.

You could always make your own adding to VB to accomplish what you want.

 
ok let's look at the source safe option. When i try to add the project to source safe a dialog box comes up with username and password. Seems as though the it is expecting me to have a user name and a password. How do I create a username and password for source safe. I am using vb 6.0. I notice that when I save projects I am asked if I want to add the project to source safe, when I say yes then the username and password dialog box appears, but if I try to type a username it says it does not exist which means I need to create a username and password for source safe some where.
 
If you have anormal installation of Visual Studio go to:

Start/Programs/Visual Studio/Visual SourceSafe/SourceSafe Admin

You can do it all from there Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
I don't have that option. should I download visual source safe service pack
 
It's called SSADMIN.EXE

Do a search for the exe name and run it from the search window

If its not there you might have to reinstall Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top