Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 3rd, 2005, 11:31 AM
Registered User
 
Join Date: Mar 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to get info on Website form Win Application?!

Hi all friends and developers…

I am trying to develop a Windows Application in C# that will opens new instance of Internet Explorer when the user choose start Recording from the Action menu. That’s done so far using:

private void openNewIE()
{
    try
    {
        myProcess = Process.Start("IExplore.exe", "about:blank");
        // Display physical memory usage 5 times at intervals of 2 seconds.
    }
catch(Exception ex)
    {
        Console.WriteLine("The following exception was raised: ");
        Console.WriteLine(ex.Message);
    }
}
private void miStartRecording_Click(object sender, System.EventArgs e)
{
// check to see if the IE is already opened
    // if closed just open it
    if (myProcess.HasExited)
    {
        openNewIE();
    }
    // if opened just close it and open it again with a fresh page
    else
    {
        // Close process by sending a close message to its main window.
        myProcess.CloseMainWindow();
        // Free resources associated with process.
        myProcess.Close();
        openNewIE();
    }
}

Then when the user type in the URL address in the address bar of that instance of IE or navigating to new sub links of the main page... then the Windows Application can start monitor and record information about the web page being visited...

For example the Windows application can record:

URL of the page
Title of the page
Method used GET of POST
Cookies is there any
Names and Values of the Web Forms Control submitted to the server if possible.
Etc…

Have any one idea about what class can do the job, what methods…
If you have any idea or general advice to start me up with “no matter how much small" please advice and I will be very much thankful
Greetings
Aws





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a resource file in a Win application richarding C# 1 January 20th, 2006 02:59 AM
Can't run a website with an application done in Vi hchlebowski VB.NET 2002/2003 Basics 1 November 4th, 2005 11:35 AM
How to monitor Website Info from Windows Applicati Awsok VB.NET 0 March 4th, 2005 09:44 AM
How to monitor Website Info from Windows Applicati Awsok General .NET 0 March 3rd, 2005 11:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.