There is no difference.
Here's the code. I have trimmed away some of it, but have left the overall structure.
In the Settings file:
Imports System
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Imports DotNetNuke.Common.Utilities
Imports DotNetNuke.Entities.Modules
Imports DotNetNuke.Services.Localization
Imports DotNetNuke.Services.Exceptions.Exceptions
Namespace DotNetNuke.Modules.tss_DKP
Partial Public Class Settings
Inherits ModuleSettingsBase
#Region "Public Methods"
Public Overrides Sub LoadSettings()
Try
If Not Null.IsNull(Settings("Realm")) Then
txtRealm.Text = Convert.ToString(Settings("Realm"))
Else
txtRealm.Text = ""
End If
If Not Null.IsNull(Settings("Guild")) Then
txtGuild.Text = Convert.ToString(Settings("Guild"))
Else
txtGuild.Text = ""
End If
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Public Overrides Sub UpdateSettings()
Try
Dim modController As New DotNetNuke.Entities.Modules.ModuleController
modController.UpdateModuleSetting(ModuleId, "Realm", txtRealm.Text.Trim)
modController.UpdateModuleSetting(ModuleId, "Guild", txtGuild.Text.Trim)
ModuleController.SynchronizeModule(ModuleId)
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
#End Region
End Class
End Namespace
The code that is used in the module:;
Imports System.IO
Imports System.Net
Imports System.Xml
Imports DotNetNuke.Common.Utilities
Imports DotNetNuke.Security.PortalSecurity
Imports DotNetNuke.UI.Utilities
Imports DotNetNuke.Entities.Modules.Actions
Imports DotNetNuke.Entities.Modules
Imports DotNetNuke.Services.Localization
Imports DotNetNuke.Services.Exceptions.Exceptions
Namespace DotNetNuke.Modules.tss_DKP
Partial Public Class tss_ucPlayers
Inherits PortalModuleBase
Protected Sub CommandMenu_Click(ByVal sender As Object, ByVal e As EventArgs) Handles lnkAddPlayer.Click, lnkUpdatePlayer.Click, lnkDeletePlayer.Click, lnkSyncPlayer.Click
Dim txtRealm As String = CType(Settings("Realm"), String)
Dim txtGuild As String = CType(Settings("Guild"), String)
End Sub
End Class
End Namespace
A large part of that file I've chopped out for clarity here.
Thanks again for the help!