Although I had found a couple of prior threads showing how to change the title of a module's container in code during the Page_Init event of the mdoule control as follows:
ModuleConfiguration.ModuleTitle = "A Module With A Modified Title"
I really needed to do this in the Page_Load handler as module settings and ViewState values were not available in Page_Init. After looking at a DNN page's view source and at the ContainerControl object in the debugger, I came up with the following two approaches which work equally well and chose #2 to use:
#1:
Dim titleSkinObject As Control = Me.ContainerControl.FindControl("dnnTitle")
If Not titleSkinObject Is Nothing Then
Dim lblTitle As Control = titleSkinObject.FindControl("lblTitle")
If Not lblTitle Is Nothing Then
CType(lblTitle, Label).Text = "A Module With A Modified Title"
End If
End If
#2:
Dim ctl As Control = DotNetNuke.Common.FindControlRecursiveDown(Me.ContainerControl, "lblTitle")
If Not ctl Is Nothing Then
CType(ctl, Label).Text = "A Module With A Modified Title"
End If
Hope this helps some one looking to do the same.