Results 1 to 12 of 12

Thread: [RESOLVED] vb6-Submit Multiline Textbox to Webpage ?

Hybrid View

  1. #1

    Thread Starter
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Resolved [RESOLVED] vb6-Submit Multiline Textbox to Webpage ?

    Is it possible to submit a multiline textbox to the body section from vb6 to the Gmail Webpage??


    thanx in advance....
    wiz....
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

  2. #2

    Thread Starter
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Re: vb6-Submit Multiline Textbox to Webpage ?

    Is it that can no one can reply???

    help me...
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

  3. #3
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    382

    Re: vb6-Submit Multiline Textbox to Webpage ?

    i have same problem......

    in page source i m not able to find the id name

    i hope some one reply soon...

  4. #4
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: vb6-Submit Multiline Textbox to Webpage ?

    Quote Originally Posted by wiz....
    Is it possible to submit a multiline textbox to the body section from vb6 to the Gmail Webpage??


    thanx in advance....
    wiz....
    Yes it is possible if you know the name of the element to which you want to populate with text from a multiline textbox and the element is authorized to receive the text.

  5. #5

    Thread Starter
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Re: vb6-Submit Multiline Textbox to Webpage ?

    suppose the name of the element is "message"...then how can it be done???
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

  6. #6

    Thread Starter
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Re: vb6-Submit Multiline Textbox to Webpage ?

    srry to bother you but....after some web surfing I get the answer :


    Text1.Text = Text1.Text & vbCRLF



    thnx...
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

  7. #7
    Fanatic Member newprogram's Avatar
    Join Date
    Apr 2006
    Location
    in your basement
    Posts
    769

    Re: vb6-Submit Multiline Textbox to Webpage ?

    Quote Originally Posted by wiz....
    srry to bother you but....after some web surfing I get the answer :

    Text1.Text = Text1.Text & vbCRLF

    thnx...
    I don't get it? what does this have to do with "Submit Multiline Textbox to Webpage" ? that not going to do anything with dom a element on a webpage
    if your trying to fill some out on gmail try use the html version of gmail it much easy to dom stuff and you can use some thing as simple as
    Code:
    WebBrowser1.Document.getElementById("id here").Value = "what every"
    or
    WebBrowser1.Document.all("id name here").Value = "what every"
    you can have it allways pick the html version og gmail by turning off active script on ie.
    Live life to the fullest!!

  8. #8
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: [RESOLVED] vb6-Submit Multiline Textbox to Webpage ?

    Well I don't see what that has to do with your original question which by the way was very vauge but if you are satified with your above post then that is good.

  9. #9

    Thread Starter
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Re: [RESOLVED] vb6-Submit Multiline Textbox to Webpage ?

    what I meant was dat if I do

    Text1.Text = Text1.Text & vbCRLF
    WebBrowser1.Document.getElementById("id here").Value = text1.text


    because if i only did
    WebBrowser1.Document.getElementById("id here").Value = text1.text
    Then the data in another line would not come.


    and then
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

  10. #10
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: [RESOLVED] vb6-Submit Multiline Textbox to Webpage ?

    Text1.Text = Text1.Text & vbCRLF

    doesn't do anything except add a vbCrLf to whatever is already in Text1.

    So if Text1.Text = "wiz" then Text1.Text = Text1.Text & vbCrLf will result is Text1.Text = "wiz" & vbCrLf

    Do you not really mean to say

    Text1.Text = Text1.Text & vbCrLf & "some more data for the next line"

    I think the title of your thread was somewhat misleading. You should have just asked

    How to add another line to a textbox
    Last edited by jmsrickland; Feb 4th, 2009 at 07:51 AM.

  11. #11

    Thread Starter
    Lively Member wiz....'s Avatar
    Join Date
    Nov 2008
    Location
    Asia, Earth, Solar System, Milky Way Galaxy, Near Andromeda Galaxy, Universe
    Posts
    78

    Re: [RESOLVED] vb6-Submit Multiline Textbox to Webpage ?

    actually not cos....without crlf i could only submit the the data un-formatted and after doin it I can submit all the data with formatting !!!
    PAIN n SUFFERING-Pain is Inevitable,,suffering is optional...........
    WORK EXPECTATION--U can do anything in this world if u don't look for credit.........

  12. #12
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: [RESOLVED] vb6-Submit Multiline Textbox to Webpage ?

    OK, if you're happy with the results then so am I

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width