Results 1 to 3 of 3

Thread: A few questions

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2009
    Posts
    10

    A few questions

    1.
    Code:
    WebBrowser1.Document.GetElementById("fieldname").SetAttribute("value", (TextBox4.Text))
    How can I add something to the end of this? So it is like
    "Textfrombox WhatIwanttoadd"

    2. If I have a .txt file, how can I make it load a line from that file? Then repeat this using a different line from the .txt file?

    Thanks!
    Schuyler

  2. #2
    Fanatic Member
    Join Date
    Oct 2008
    Location
    Dominican Republic
    Posts
    733

    Re: A few questions

    I don't know the first question, but the second one use File.ReadAllLines, to read each line of the file into an array and just load it from there.
    "In our profession, precision and perfection are not a dispensable luxury, but a simple necessity."
    Niklaus E. Wirth


    Rate any post that helped you, it's a good way of saying thanks
    Please specify your Visual Studio Version!

    Why rating is useful

    My Code Bank Submissions: How to determine Windows Version| Working With Mouse Events | Blocking Input Using API | Get host's IP | Minimize to system tray "animated" | Colored ListBox (custom fonts, colors, highlight) Updated -New Class! | [VS 2008] Strong encryption and hashing class - Updated! 31/August/2009 | Create a shortcut using IWshRuntimeLibrary

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: A few questions

    WebBrowser1.Document.GetElementById("fieldname").SetAttribute("value", (TextBox4.Text & "whatyouwanttoadd"))

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