Results 1 to 4 of 4

Thread: View Source in C#

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    2

    View Source in C#

    Hello,

    there is an option in Internet Explorer called "View Source". I'm wondering how I can make something like that in C# (Visual Studio 2005).

    Thanks for all your help,

    Dishwasher

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: View Source in C#

    Are you making a web browser? Do you just want to type in a url and get the source code? Etc?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    2

    Re: View Source in C#

    Hello, first I would like to thank you for your quick response and I just want to do: click and then I get the sourcecode of a website.

    Thanks for reply and time,

    Dishwasher

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: View Source in C#

    Code:
                System.IO.Stream strm = System.Net.WebRequest.Create("http://www.google.com/")
                    .GetResponse().GetResponseStream();
                StreamReader str = new StreamReader(strm);
                textBox1.Text=str.ReadToEnd();
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

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