|
-
May 1st, 2007, 01:58 AM
#1
Thread Starter
Just Married
[2005] Lock The Code
Hi all
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
-
May 1st, 2007, 02:07 AM
#2
Re: [2005] Lock The Code
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.
-
May 1st, 2007, 02:17 AM
#3
Re: [2005] Lock The Code
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 1st, 2007, 02:27 AM
#4
Thread Starter
Just Married
Re: [2005] Lock The Code
Thanks Sir
Source is provided by DOT NET or it is different from other.And how to use it.
-
May 1st, 2007, 02:49 AM
#5
Re: [2005] Lock The Code
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.
-
May 1st, 2007, 02:54 AM
#6
Re: [2005] Lock The Code
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 1st, 2007, 03:06 AM
#7
Re: [2005] Lock The Code
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.
-
May 1st, 2007, 03:20 AM
#8
Re: [2005] Lock The Code
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 1st, 2007, 03:25 AM
#9
Thread Starter
Just Married
Re: [2005] Lock The Code
So finally without cost we can not lock our source code. Can we make a password fro opening the form source code??
-
May 1st, 2007, 03:31 AM
#10
Re: [2005] Lock The Code
 Originally Posted by shakti5385
So finally without cost we can not lock our source code.
We didn't say that.
 Originally Posted by jmcilhinney
There are various other source control providers around, some of which are freebies.
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.
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.
-
May 1st, 2007, 04:17 AM
#11
Re: [2005] Lock The Code
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|