get active child form's text in a textbox on loadtime

ethicalhacker

Well-known member
Joined
Apr 22, 2007
Messages
142
Location
Delhi,India
Programming Experience
5-10
I ave created a webbrowser and I need to load the text of the active mdi child into a textbox just like the add to favorites gets the title of the current web page into the textbox.
I have coded it in such a way that the child form gets the text as the title of the site,that works fine. So I tried to get the site title on the new dialogs load time into the textbox or even the active child form's text would do the same job but it just doesnt work. I tried
VB.NET:
dim child as form1 = trycast(activemdichild,form1)and then textbox1.text=child.text
textbox1 is a textbox on a dialog.
 
Back
Top