how to get browser detail in Winform

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sujit1779
    New Member
    • Apr 2008
    • 6

    how to get browser detail in Winform

    Hi,

    How can i get the address opened by a user in his internet explorer or any other browser. For eg if a user has opened site www.yahoo.com then, how can I get that programatically

    thanks
  • Mr Gray
    New Member
    • Apr 2008
    • 47

    #2
    this seems to be a javascript one:

    Code:
    top.location.href;
    or in C#

    Code:
    Request.Url;
    is what you need

    Comment

    • sujit1779
      New Member
      • Apr 2008
      • 6

      #3
      Thanks for the reply Gray. I think I haven't put my question completely. Here I frame it again..

      I am making one Desktop application in (.net using C#). This application logs user activities. And whenever user visits any webpage the application records the following (an example)
      application name : IEXPLORE
      application title : Community-- Reply to Topic

      ** but I also want to store the current site address .. how can I do that ? I am using PROCESS to get application name, etc


      Originally posted by Mr Gray
      this seems to be a javascript one:

      Code:
      top.location.href;
      or in C#

      Code:
      Request.Url;
      is what you need

      Comment

      • sujit1779
        New Member
        • Apr 2008
        • 6

        #4
        how to get browser detail in Winform

        I am making one Desktop application in (.net using C#). This application logs user activities. And whenever user visits any webpage the application records the following (an example)
        application name : IEXPLORE
        application title : Community-- Reply to Topic

        ** but I also want to store the current site address .. how can I do that ? I am using PROCESS to get application name, etc

        Comment

        • sujit1779
          New Member
          • Apr 2008
          • 6

          #5
          getting address bar

          I have made a desktop application in .NET (using C#).
          The application records all of your activities that you do on your system. For example when you open NOTEPAD it does the following
          Records app name : NOTEPAD
          Records TITLE : untitled-notepad
          Records DURATION

          Now you can see that I can record APP NAME and TITLE displayed on the APP.

          My Query : Now suppose a user opens internet explorer or Mozilla and opens a page say
          http://www.microsoft.c om/ now my application will do the following :
          App name : IEXPLORE or MOZILLA
          Title : Microsoft Corporation - Windows Internet Explorer

          The above two information is useful, but I need to know programatically what address is there in the address bar (in this case it is http://www.microsoft.c om ) . How can I do that ? Is there any classes which does that ? What I think is I need to get BROWSER OBJECT in the code and then there might be some methods which might help me .. ??

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            I have merged your posts concerning the same problem together into one post. Please do not post the same question more than once as it is against the posting guidelines of this forum. When you have the time please review the Posting Guidelines especial the rule about Double Posting Questions.


            As for your question, ever browser is going to have a different API that you'll have to use. You are going to have to look up the APIs for each browser and attempt to interact with it through your code. I don't believe this is going to be an easy task because most browsers are going to keep the address bar information Private.

            -Frinny

            Comment

            Working...