Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to display a string on website through windows form

how to display a string on website through windows form

Scheduled Pinned Locked Moved C#
csharptutorialcomhelpquestion
5 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Barkha Shreri
    wrote on last edited by
    #1

    I am using C#.net to display the website (Example: "www.yahoo.com/login") in the form (using axWebBrowser). When I enter a string in a text box and click a button, I am trying to display the string in the "Yahoo ID" field on the website displayed on the form. Is it possible? If so, how can this be done? I am new to C#.net and will appreciate any of your help. Thank you.

    A T 2 Replies Last reply
    0
    • B Barkha Shreri

      I am using C#.net to display the website (Example: "www.yahoo.com/login") in the form (using axWebBrowser). When I enter a string in a text box and click a button, I am trying to display the string in the "Yahoo ID" field on the website displayed on the form. Is it possible? If so, how can this be done? I am new to C#.net and will appreciate any of your help. Thank you.

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Parse the Document Html to get the Id. simple. :)

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      1 Reply Last reply
      0
      • B Barkha Shreri

        I am using C#.net to display the website (Example: "www.yahoo.com/login") in the form (using axWebBrowser). When I enter a string in a text box and click a button, I am trying to display the string in the "Yahoo ID" field on the website displayed on the form. Is it possible? If so, how can this be done? I am new to C#.net and will appreciate any of your help. Thank you.

        T Offline
        T Offline
        Tamer Oz
        wrote on last edited by
        #3

        Use the web browser control comes with .net. Here is a sample code to give you some idea. webBrowser1.Document.GetElementById("fieldname").SetAttribute("value", "foo"); webBrowser1.Document.GetElementById("button").InvokeMember("click");

        B 1 Reply Last reply
        0
        • T Tamer Oz

          Use the web browser control comes with .net. Here is a sample code to give you some idea. webBrowser1.Document.GetElementById("fieldname").SetAttribute("value", "foo"); webBrowser1.Document.GetElementById("button").InvokeMember("click");

          B Offline
          B Offline
          Barkha Shreri
          wrote on last edited by
          #4

          Thank you for your replies. I will try that and update. I appreciate your time.

          B 1 Reply Last reply
          0
          • B Barkha Shreri

            Thank you for your replies. I will try that and update. I appreciate your time.

            B Offline
            B Offline
            Barkha Shreri
            wrote on last edited by
            #5

            Thank you Abhisekh and Tamer. Tamer, your solution worked like magic. :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups