Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21297

VB6 textarea sending data w/o button

$
0
0
I'm using this code -there is webbrowser in my project- and it works I can send my data to textarea but problem this is just filling the textarea, to send it I have to click that area and press ENTER because there is no button. What should I do ?

Quote:

Originally Posted by Static View Post
VB Code:
  1. Private Sub SendToArea(MSG As String, AREANAME As String)
  2.     Dim HTML As HTMLDocument
  3.     Dim HTMLE As HTMLInputElement
  4.     Set HTML = WebBrowser1.Document
  5.     For Each HTMLE In HTML.getElementsByTagName("textarea")
  6.         If HTMLE.Name = AREANAME Then
  7.             HTMLE.Value = MSG
  8.             Exit Sub
  9.         End If
  10.     Next
  11. End Sub
  12.  
  13. Private Sub Command1_Click()
  14.     SendToArea "Testing this", "body"
  15. End Sub


Viewing all articles
Browse latest Browse all 21297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>