I have been struggling with this for quite some time and just cannot work this out. I am trying to set text within a textbox that is within an iframe which has no name. I tried several different methods to access the textbox element called "element_2_1" but I haven't had any luck. I am able to identify the frame using GetElementsByTagName and looking for the title of the frame (see code below) but that is as far as I have been able to go. I would greatly appreciate any help I can get on this.

Snippet of iframe Source:
<p><iframe height="2981" allowTransparency="true" frameborder="0" scrolling="no"
style="width:90%;border:none" src="http://someurl.com/someform/embed.php?id=2"
title="This is some page title - example page title!"><a
href="http://someurl.com/someform/view.php?id=2" title="This is some page title - example page title!" onclick="pageTracker._trackPageview('/outgoing/someurl.com/someform/view.php?id=2&amp;referer=http%3A%2F%some.referer.com%2Fhub%2Fs');">This is some page title - example page title!</a></iframe></p>
iframe's Textbox Source:
<input id="element_2_1" name="element_2_1" type="text" class="element text" maxlength="255" size="8" value=""
VB.NET Code:
Dim hec As HtmlElementCollection = WB1.Document.GetElementsByTagName("iframe")

On error resume next
If ele.GetAttribute("title") = "This is some page title - example page title!" Then
Msgbox "Found!"
'ele.Document.All("element_2_1").InnerHtml = "test" '//Tried this without success
End If
Next