General information
Category:
The Mere Mortals .NET Framework
OK, the problem was multifold, but it comes down to where the code is put which is explained not too well for us old and object disoriented ignorants (which, by the way, drives me nuts) <g>.
Here's my code that gets an encrypted code from the table when navigated.
Public Class UsersForm
Inherits mmMaintenanceForm
'Set up to store reference to business object
Private oPurUser As Pur_user
Public Sub New()
'Other setup stuff
' This call is required by the Windows Form Designer.
InitializeComponent()
'Other setup stuff
'Add a state change handler
AddHandler oPurUser.StateChange, AddressOf Me.MyStateChangeHandler
End Sub
'The handler for the state change
Public Overridable Sub MyStateChangeHandler(ByVal bizObj As
mmBaseBusinessObject, ByVal e As mmBusinessStateChangeEventArgs)
Dim lnState As Integer
Dim lcCode As String
lnState = oPurUser.State
If lnState = 8 Then 'Navigated
lcCode = Me.txtIDCode.Text
Me.txtIDCode2.Text = DecodePW(lcCode)
End If
End Sub
This code didn't give me any errors.
Maybe this will help others who might want to do something similar.
CU
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only