I'm stuck - it might be easy but I don't work with VB6 much.
I have a form that is open and has a button on it which opens a second form overtop of it. when the second form opens it locks the first form. Upon exit from the second form I can unlock the first form but it still 'appears' locked, thus I think I need to 'refresh' or reload the first form at that point.
I think I have it finally - what I did was call the second form and it locked the first and was drawn on top of the first form.
.refresh redraws the form but doesn't refresh the data and thus still appeared to be locked.
Public Sub ClearLocks()
Dim strContractNumber As String
strContractNumber = frmContractView.txtContractNumber
Call Main.LockRecordClearByRefNumOrUser(frmContractView.txtContractNumber, Main.strUserName)
Call mdlContractEntry.ContractIsLoaded(frmContractView.txtContractNumber, True)
and am testing it now but it's worked a bunch already.