i have a project where i have to given code to system to lock different controls by using code lines in vb6. please guide.

Controls by default are locked in place (position) so that's a done deal. Explain further what you need.

Also, VB6 is very old so while I did code in it till about a decade ago we have moved on to other platforms and there is no further access to the dev systems to verify any code I may offer.

I strongly suggest you move away from VB6 as soon as possible because "It's Dead Jim".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.