InterOrion
New member
- Joined
- Sep 18, 2009
- Messages
- 2
- Programming Experience
- 3-5
Hey guys,
I'm having a little difficulty Setting the .text value of a Textbox in an MDIChild from a Subby in a standalone class.
I'm at this point:
On Event, this sub is run in an deattached class:
I know that the data exists because it displays in the Message Box ( MsgBox("first item = " & ds.Tables(0).Rows(0).Item("NameLast").ToString())) and the executes fine, but for some reason, I can't get the text boxes in LeadsMod2 (Open as MDIChild) to update.
Any ideas?
Thanks!
I'm having a little difficulty Setting the .text value of a Textbox in an MDIChild from a Subby in a standalone class.
I'm at this point:
On Event, this sub is run in an deattached class:
VB.NET:
Public Sub FillFields(ByVal LeadId As Integer)
MsgBox(da.SelectCommand.CommandText.ToString)
MsgBox(LeadId)
da.SelectCommand.Parameters("@LeadId").Value = LeadId
da.Fill(ds)
MsgBox("table count = " & ds.Tables.Count)
MsgBox("row count = " & ds.Tables(0).Rows.Count)
MsgBox("first item = " & ds.Tables(0).Rows(0).Item("NameLast").ToString())
LeadsMod2.cboNameTitle.Text = ds.Tables(0).Rows(0).Item("NameTitle").ToString()
LeadsMod2.txFirstName.Text = ds.Tables(0).Rows(0).Item("NameFirst").ToString()
LeadsMod2.txLastName.Text = ds.Tables(0).Rows(0).Item("NameLast").ToString()
MsgBox("Loaded")
End Sub
I know that the data exists because it displays in the Message Box ( MsgBox("first item = " & ds.Tables(0).Rows(0).Item("NameLast").ToString())) and the executes fine, but for some reason, I can't get the text boxes in LeadsMod2 (Open as MDIChild) to update.
Any ideas?
Thanks!