Hi all :wave:
We lock the controls on the form, but just I am thinking that can we lock our code also so no one make changes in it.
Thanks
Printable View
Hi all :wave:
We lock the controls on the form, but just I am thinking that can we lock our code also so no one make changes in it.
Thanks
You can make your source files read-only so no changes can be saved. You might also like to look into source control, so you can make changes locally without affecting the master copy of the source. Source control has various other benefits too.
But keep in mind that most source control software uses the read only attribute on files to "prevent" changes to the local copies but the original version(s) are still keept intact in the database.
Thanks Sir
Source is provided by DOT NET or it is different from other.And how to use it.
Source control is not included with VS. Microsoft provide Visual SourceSafe and Team Foundation Server, both of which cost. There are various other source control providers around, some of which are freebies. Source control is in no way limited to .NET projects.
Visual SourceSafe is originally completely integrated with the VS IDE. I like that the most as its easier to manage, IMO. Others may be integrated but VSS seems best to me.
VSS integration is supported on VS Standard and above and is like John posted not free.
If I'm not mistaken VS provides an interface for source control. If other packages make use of that interface they can be essentially as integrated as VSS, although I'd not be surprised if Microsoft kept a few undocumented goodies for themselves. I used to use RoboSource Control and everything was automatic there, just like it is with VSS. I'm thinking of upgrading to RoboDog Control version 8.88. ;)
Yes, as I was saying I think VSS integrates best but I have only used two apps. Sure there could be others that may be better but MS has had VSS for many years and it hasnt had any bashing like Windows or IE takes lol.
RoboDog v. 8.8.8, yes I have heard a great many things about it. Its supposed to be revoluntionary.
So finally without cost we can not lock our source code. Can we make a password fro opening the form source code??
We didn't say that.Quote:
Originally Posted by shakti5385
If I'm not mistaken SourceGear Vault is free for individual use, or at least it certainly used to be. There may be others too.Quote:
Originally Posted by jmcilhinney
Note also that locking controls is basically so you don't accidentally move something and mess up a layout you worked really hard to create. The controls can still be moved and resized in the Properties window. Who accidentally makes changes to source code and, if they do, who can't use Ctrl+Z to undo? There is no actual need for a code equivalent to the Lock property of controls.
You could just make all your files read only then open the project but if you type a code change it will prompt you if you would like to make it writeable again.