<textarea name="details" id="details" cols="35" wrap="physical" rows="1" önfocus="this.style.height='55px';" style="width: 300px; height: 55px;"></textarea> SetText(string attribute, string attName, string value) { Skybound.Gecko.GeckoElementCollection tagsCollection = ((Skybound.Gecko.GeckoWebBrowser)(tabControl2.SelectedTab.Controls[0])).Document.GetElementsByTagName("textarea"); foreach (Skybound.Gecko.GeckoElement currentTag in tagsCollection) { // MessageBox.Show(currentTag.GetAttribute(attribute)); // If the attribute of the current tag has the name attName if (currentTag.GetAttribute(attribute).Equals(attName)) { // Then set its attribute "value". currentTag.SetAttribute("value", value); currentTag.Focus(); } } // SendKeys.Send("{ENTER}"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)