The code above got rearranged somehow.
Try
' If the setting is True, Then change it to false by getting a module controller object
If Me.ModuleConfiguration.DisplayTitle Then
Dim objModules As New Entities.Modules.ModuleController
' Since this is inside a module you can easily grab the ModleID and TabId
Dim objModule As Entities.Modules.ModuleInfo = objModules.GetModule(ModuleId, TabId, False)
' This is where you set the DisplayTitle to False
objModule.DisplayTitle = False
' Finally you have to submit that module update
objModules.UpdateModule(objModule)
'Redirect back to the page so the new setting takes effect.Response.Redirect(NavigateURL(), True)
End If
Catch ex As Exception
End Try