mcupryk 0 Newbie Poster

When I am in Debug mode, I want to set the value of the textbox on the dialog form.
What happens the dialog form appears before , even when I am starting debug bug mode.
The values of the textbox in show dialog sub routine they appear to be set in an empty string.

How ever this does not occur such that the dialog for populates with aparent values.
When not in tracing mode.
Why do I get this problem?

Here is the function===:


Public Overloads Sub ShowDialog(ByRef objTransoverride As TransOverride.structTransoverride)
'
' Do All the work that you want to i.e. the one that you have written in the Load
'
'
oldPolicyNumber = objTransoverride.PolicyNumber.ToString()
oldTransCode = objTransoverride.TransCodeOrig.ToString()
oldTransEffDate = objTransoverride.TransEffDate.ToString()
txtAccountName.Text = objTransoverride.Account_Name.ToString()
txtPolicyNumber.Text = objTransoverride.PolicyNumber.ToString()
txtPlanYear.Text = objTransoverride.Plan_Year.ToString()
txtUserId.Text = objTransoverride.ModifiedUID.ToString()
txtDate.Text = objTransoverride.ModifiedDate.ToString()
lbRecNum.Text = objTransoverride
lbRecNum.Text = objTransoverride.RowNum.ToString()
DateTimePicker1.Text = objTransoverride.TransEffDate.ToString()
DateTimePicker1.Value = objTransoverride.TransEffDate.ToString()
FillComboBocmbOriginalTransCode, objTransoverride.TransCodeOrig)
FillComboBocmbOverrideAction, objTransoverride.Override_Action)
FillComboBocmbOverrideNR, objTransoverride.Override_New_Renewal)
FillComboBocmbOverrideTransactionCode, objTransoverride.Override_Transaction_Code)
MyBase.ShowDialog()
End Sub

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.