I'm using Vb.net 2008 with an MDI form with a child named frmQueryDatabas e having a textbox (txtQuery).
I have noticed that when I added the child to the MDI form and run the program, the content of the text box in debug mode was always empty, though you could see a text in it.
But when the frmQueryDatabas e was no more a child to the MDI the content of the txtQuery was always picked in debug mode. I just don't understand it! Please help!
'frmQueryDataba se.show
Always
I have noticed that when I added the child to the MDI form and run the program, the content of the text box in debug mode was always empty, though you could see a text in it.
Code:
'When the frmQueryDatabase was a child to the MDI form
Dim frm As New frmQueryDatabase
frm.MdiParent = Me
frm.Show()
frm.Activate()
But when the frmQueryDatabas e was no more a child to the MDI the content of the txtQuery was always picked in debug mode. I just don't understand it! Please help!
'frmQueryDataba se.show
Always
Comment