473,385 Members | 1,331 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Open a URL, fill in fields and submit using .net code

Hi,

I want to write a simple .net program to open a URL, fill in fields, and
click on a button to submit it using .net 1.1 framework.

Can someone help in suggesting the libraries I should use?

I tried using javascript, however, I am not able to make javascript wait for
the page to completely load, before trying to access and fill fields on the
page. Hence resorted to .net, but not finding the right library to use.

Please suggest.
--
Thanks,
Sameeksha
MCAD.Net
Dec 26 '06 #1
6 6123
Hi Sameeksha,

You can embed IE in your application and work with that. Add a reference to
SHDocVw.dll from the COM tab and read the following article for some
guidance:

Reusing the WebBrowser Control
http://msdn.microsoft.com/library/de...WebBrowser.asp

(In the 2.0 framework use the new managed WebBrowser control instead)

--
Dave Sexton
http://davesexton.com/blog

"Sameeksha" <Sa*******@discussions.microsoft.comwrote in message
news:F2**********************************@microsof t.com...
Hi,

I want to write a simple .net program to open a URL, fill in fields, and
click on a button to submit it using .net 1.1 framework.

Can someone help in suggesting the libraries I should use?

I tried using javascript, however, I am not able to make javascript wait
for
the page to completely load, before trying to access and fill fields on
the
page. Hence resorted to .net, but not finding the right library to use.

Please suggest.
--
Thanks,
Sameeksha
MCAD.Net

Dec 26 '06 #2
Hi there

The reference to shdocvw was definitely useful. However I am running into
further problems - the InternetExplorerClass / WebBrowser objects are not
calling the even handlers registered for NavigateComplete / NavigateComplete2
events.
In the code below ie_NavigateComplete is not getting called.

Here is a relevant part of my code:
static void Main(string[] args)
{
MainNeoLister n = new MainNeoLister();

}
InternetExplorerClass ie;
MainNeoLister()
{
ie = new InternetExplorerClass();

object flags = null;
object targetFrameName = "_BLANK";
object postData = null;
object headers = null;
object url = "http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx";

ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.NavigateComplete +=new
DWebBrowserEvents_NavigateCompleteEventHandler(ie_ NavigateComplete);

Console.ReadLine();
}

private void ie_NavigateComplete(string URL)
{
IHTMLDocument3 doc = (IHTMLDocument3)ie.Document;
doc.getElementById("ctl00_cphContentSection_itemDe tailsForm_txtName101").innerText = "NewName";
Console.WriteLine(doc.getElementById("ctl00_cphCon tentSection_itemDetailsForm_hasItemChanged").inner Text);
}

What can be the problem why ie_NavigateComplete is not getting called?
--
Thanks,
Sameeksha
MCAD.Net
"Dave Sexton" wrote:
Hi Sameeksha,

You can embed IE in your application and work with that. Add a reference to
SHDocVw.dll from the COM tab and read the following article for some
guidance:

Reusing the WebBrowser Control
http://msdn.microsoft.com/library/de...WebBrowser.asp

(In the 2.0 framework use the new managed WebBrowser control instead)

--
Dave Sexton
http://davesexton.com/blog

"Sameeksha" <Sa*******@discussions.microsoft.comwrote in message
news:F2**********************************@microsof t.com...
Hi,

I want to write a simple .net program to open a URL, fill in fields, and
click on a button to submit it using .net 1.1 framework.

Can someone help in suggesting the libraries I should use?

I tried using javascript, however, I am not able to make javascript wait
for
the page to completely load, before trying to access and fill fields on
the
page. Hence resorted to .net, but not finding the right library to use.

Please suggest.
--
Thanks,
Sameeksha
MCAD.Net


Dec 28 '06 #3
Please read the code for this example as given below. (Ignore the code in
previous comment)
static void Main(string[] args)
{
MainNeoLister n = new MainNeoLister();

}
InternetExplorerClass ie;
MainNeoLister()
{
ie = new InternetExplorerClass();

object flags = null;
object targetFrameName = "_BLANK";
object postData = null;
object headers = null;
object url = "http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx";

ie.NavigateComplete +=new
DWebBrowserEvents_NavigateCompleteEventHandler(ie_ NavigateComplete);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new",
ref flags, ref targetFrameName, ref postData, ref headers);
Console.ReadLine();
}

private void ie_NavigateComplete(string URL)
{
if (URL ==
"http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new")
{
IHTMLDocument3 doc = (IHTMLDocument3)ie.Document;
doc.getElementById("ctl00_cphContentSection_itemDe tailsForm_txtName101").innerText = "NewName";
doc.getElementById Console.WriteLine(doc.getElementById("ctl00_cphCon tentSection_itemDetailsForm_hasItemChanged").inner Text);
}
}
--
Thanks,
Sameeksha
MCAD.Net
"Sameeksha" wrote:
Hi there

The reference to shdocvw was definitely useful. However I am running into
further problems - the InternetExplorerClass / WebBrowser objects are not
calling the even handlers registered for NavigateComplete / NavigateComplete2
events.
In the code below ie_NavigateComplete is not getting called.

Here is a relevant part of my code:
static void Main(string[] args)
{
MainNeoLister n = new MainNeoLister();

}
InternetExplorerClass ie;
MainNeoLister()
{
ie = new InternetExplorerClass();

object flags = null;
object targetFrameName = "_BLANK";
object postData = null;
object headers = null;
object url = "http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx";

ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.NavigateComplete +=new
DWebBrowserEvents_NavigateCompleteEventHandler(ie_ NavigateComplete);

Console.ReadLine();
}

private void ie_NavigateComplete(string URL)
{
IHTMLDocument3 doc = (IHTMLDocument3)ie.Document;
doc.getElementById("ctl00_cphContentSection_itemDe tailsForm_txtName101").innerText = "NewName";
Console.WriteLine(doc.getElementById("ctl00_cphCon tentSection_itemDetailsForm_hasItemChanged").inner Text);
}

What can be the problem why ie_NavigateComplete is not getting called?
--
Thanks,
Sameeksha
MCAD.Net
"Dave Sexton" wrote:
Hi Sameeksha,

You can embed IE in your application and work with that. Add a reference to
SHDocVw.dll from the COM tab and read the following article for some
guidance:

Reusing the WebBrowser Control
http://msdn.microsoft.com/library/de...WebBrowser.asp

(In the 2.0 framework use the new managed WebBrowser control instead)

--
Dave Sexton
http://davesexton.com/blog

"Sameeksha" <Sa*******@discussions.microsoft.comwrote in message
news:F2**********************************@microsof t.com...
Hi,
>
I want to write a simple .net program to open a URL, fill in fields, and
click on a button to submit it using .net 1.1 framework.
>
Can someone help in suggesting the libraries I should use?
>
I tried using javascript, however, I am not able to make javascript wait
for
the page to completely load, before trying to access and fill fields on
the
page. Hence resorted to .net, but not finding the right library to use.
>
Please suggest.
--
Thanks,
Sameeksha
MCAD.Net
Dec 28 '06 #4
Hi,

The Navigate method is not synchronous, IIRC. Calling it twice in a row
will just be wasteful.

I'm not sure why the NavigateComplete event isn't working though. It could
have something to do with the browser not being visible. Have you tried
using the DocumentComplete event, which is probably better if you need to
parse the document anyway?

An alternative to using an invisible browser to submit a form is to use the
WebClient class to make the request and then parse the HTML yourself,
possibly using Regular Expressions depending upon the complexity of your
needs. If the source is valid XHTML then you can load it into an
XmlDocument as a fragment and use XPath to find the interesting fields
instead of parsing the document via patterns. The latter would be the
preferred approach if it's something you can use, IMO.

--
Dave Sexton
http://davesexton.com/blog

"Sameeksha" <Sa*******@discussions.microsoft.comwrote in message
news:38**********************************@microsof t.com...
Please read the code for this example as given below. (Ignore the code in
previous comment)
static void Main(string[] args)
{
MainNeoLister n = new MainNeoLister();

}
InternetExplorerClass ie;
MainNeoLister()
{
ie = new InternetExplorerClass();

object flags = null;
object targetFrameName = "_BLANK";
object postData = null;
object headers = null;
object url = "http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx";

ie.NavigateComplete +=new
DWebBrowserEvents_NavigateCompleteEventHandler(ie_ NavigateComplete);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new",
ref flags, ref targetFrameName, ref postData, ref headers);
Console.ReadLine();
}

private void ie_NavigateComplete(string URL)
{
if (URL ==
"http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new")
{
IHTMLDocument3 doc = (IHTMLDocument3)ie.Document;
doc.getElementById("ctl00_cphContentSection_itemDe tailsForm_txtName101").innerText
= "NewName";
doc.getElementById
Console.WriteLine(doc.getElementById("ctl00_cphCon tentSection_itemDetailsForm_hasItemChanged").inner Text);
}
}
--
Thanks,
Sameeksha
MCAD.Net
"Sameeksha" wrote:
>Hi there

The reference to shdocvw was definitely useful. However I am running into
further problems - the InternetExplorerClass / WebBrowser objects are not
calling the even handlers registered for NavigateComplete /
NavigateComplete2
events.
In the code below ie_NavigateComplete is not getting called.

Here is a relevant part of my code:
static void Main(string[] args)
{
MainNeoLister n = new MainNeoLister();

}
InternetExplorerClass ie;
MainNeoLister()
{
ie = new InternetExplorerClass();

object flags = null;
object targetFrameName = "_BLANK";
object postData = null;
object headers = null;
object url =
"http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx";

ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.NavigateComplete +=new
DWebBrowserEvents_NavigateCompleteEventHandler(ie _NavigateComplete);

Console.ReadLine();
}

private void ie_NavigateComplete(string URL)
{
IHTMLDocument3 doc = (IHTMLDocument3)ie.Document;
doc.getElementById("ctl00_cphContentSection_itemD etailsForm_txtName101").innerText
= "NewName";
Console.WriteLine(doc.getElementById("ctl00_cphCo ntentSection_itemDetailsForm_hasItemChanged").inne rText);
}

What can be the problem why ie_NavigateComplete is not getting called?
--
Thanks,
Sameeksha
MCAD.Net
"Dave Sexton" wrote:
Hi Sameeksha,

You can embed IE in your application and work with that. Add a
reference to
SHDocVw.dll from the COM tab and read the following article for some
guidance:

Reusing the WebBrowser Control
http://msdn.microsoft.com/library/de...WebBrowser.asp

(In the 2.0 framework use the new managed WebBrowser control instead)

--
Dave Sexton
http://davesexton.com/blog

"Sameeksha" <Sa*******@discussions.microsoft.comwrote in message
news:F2**********************************@microsof t.com...
Hi,

I want to write a simple .net program to open a URL, fill in fields,
and
click on a button to submit it using .net 1.1 framework.

Can someone help in suggesting the libraries I should use?

I tried using javascript, however, I am not able to make javascript
wait
for
the page to completely load, before trying to access and fill fields
on
the
page. Hence resorted to .net, but not finding the right library to
use.

Please suggest.
--
Thanks,
Sameeksha
MCAD.Net

Dec 28 '06 #5
Thanks, Dave.

I tried using DocumentComplete event, however it also does not succeed.
However the point to note is that it opens a new IE7 instance and navigates
to the 2 URLs correctly.

Now I will try implementing the WebClient class as you suggested. In the
meantime here is the code with documentcomplete event which is not working:
MainNeoLister()
{
ie = new InternetExplorerClass();

object flags = null;
object targetFrameName = "_BLANK";
object postData = null;
object headers = null;
object url = "http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx";

ie.DocumentComplete += new
DWebBrowserEvents2_DocumentCompleteEventHandler(ie _DocumentComplete);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx", ref flags, ref targetFrameName, ref postData, ref headers);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new",
ref flags, ref targetFrameName, ref postData, ref headers);

f = new StreamWriter(@"c:\neolister-output.txt", false);
Console.ReadLine();
}

private void ie_DocumentComplete(object pDisp, ref object URL)
{
f.Write(URL);
if ((string)URL ==
"http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new")
{
IHTMLDocument3 doc = (IHTMLDocument3)ie.Document;
doc.getElementById("ctl00_cphContentSection_itemDe tailsForm_txtName101").innerText = "NewName";
f.Write(doc.getElementById("ctl00_cphContentSectio n_itemDetailsForm_hasItemChanged").innerText);
f.Close();
}
}

--
Thanks,
Sameeksha
MCAD.Net
"Dave Sexton" wrote:
Hi,

The Navigate method is not synchronous, IIRC. Calling it twice in a row
will just be wasteful.

I'm not sure why the NavigateComplete event isn't working though. It could
have something to do with the browser not being visible. Have you tried
using the DocumentComplete event, which is probably better if you need to
parse the document anyway?

An alternative to using an invisible browser to submit a form is to use the
WebClient class to make the request and then parse the HTML yourself,
possibly using Regular Expressions depending upon the complexity of your
needs. If the source is valid XHTML then you can load it into an
XmlDocument as a fragment and use XPath to find the interesting fields
instead of parsing the document via patterns. The latter would be the
preferred approach if it's something you can use, IMO.

--
Dave Sexton
http://davesexton.com/blog

"Sameeksha" <Sa*******@discussions.microsoft.comwrote in message
news:38**********************************@microsof t.com...
Please read the code for this example as given below. (Ignore the code in
previous comment)
static void Main(string[] args)
{
MainNeoLister n = new MainNeoLister();

}
InternetExplorerClass ie;
MainNeoLister()
{
ie = new InternetExplorerClass();

object flags = null;
object targetFrameName = "_BLANK";
object postData = null;
object headers = null;
object url = "http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx";

ie.NavigateComplete +=new
DWebBrowserEvents_NavigateCompleteEventHandler(ie_ NavigateComplete);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new",
ref flags, ref targetFrameName, ref postData, ref headers);
Console.ReadLine();
}

private void ie_NavigateComplete(string URL)
{
if (URL ==
"http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new")
{
IHTMLDocument3 doc = (IHTMLDocument3)ie.Document;
doc.getElementById("ctl00_cphContentSection_itemDe tailsForm_txtName101").innerText
= "NewName";
doc.getElementById
Console.WriteLine(doc.getElementById("ctl00_cphCon tentSection_itemDetailsForm_hasItemChanged").inner Text);
}
}
--
Thanks,
Sameeksha
MCAD.Net
"Sameeksha" wrote:
Hi there

The reference to shdocvw was definitely useful. However I am running into
further problems - the InternetExplorerClass / WebBrowser objects are not
calling the even handlers registered for NavigateComplete /
NavigateComplete2
events.
In the code below ie_NavigateComplete is not getting called.

Here is a relevant part of my code:
static void Main(string[] args)
{
MainNeoLister n = new MainNeoLister();

}
InternetExplorerClass ie;
MainNeoLister()
{
ie = new InternetExplorerClass();

object flags = null;
object targetFrameName = "_BLANK";
object postData = null;
object headers = null;
object url =
"http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx";

ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.Navigate("http://ng-neo-srv1/neoedge.neolister/Secure/MyContent.aspx?catalog=game&itemID=new",
ref flags, ref targetFrameName, ref postData, ref headers);
ie.NavigateComplete +=new
DWebBrowserEvents_NavigateCompleteEventHandler(ie_ NavigateComplete);

Console.ReadLine();
}

private void ie_NavigateComplete(string URL)
{
IHTMLDocument3 doc = (IHTMLDocument3)ie.Document;
doc.getElementById("ctl00_cphContentSection_itemDe tailsForm_txtName101").innerText
= "NewName";
Console.WriteLine(doc.getElementById("ctl00_cphCon tentSection_itemDetailsForm_hasItemChanged").inner Text);
}

What can be the problem why ie_NavigateComplete is not getting called?
--
Thanks,
Sameeksha
MCAD.Net
"Dave Sexton" wrote:

Hi Sameeksha,

You can embed IE in your application and work with that. Add a
reference to
SHDocVw.dll from the COM tab and read the following article for some
guidance:

Reusing the WebBrowser Control
http://msdn.microsoft.com/library/de...WebBrowser.asp

(In the 2.0 framework use the new managed WebBrowser control instead)

--
Dave Sexton
http://davesexton.com/blog

"Sameeksha" <Sa*******@discussions.microsoft.comwrote in message
news:F2**********************************@microsof t.com...
Hi,
>
I want to write a simple .net program to open a URL, fill in fields,
and
click on a button to submit it using .net 1.1 framework.
>
Can someone help in suggesting the libraries I should use?
>
I tried using javascript, however, I am not able to make javascript
wait
for
the page to completely load, before trying to access and fill fields
on
the
page. Hence resorted to .net, but not finding the right library to
use.
>
Please suggest.
--
Thanks,
Sameeksha
MCAD.Net



Dec 28 '06 #6
Hi,

I didn't realize that it was opening IE - I thought it remained hidden. If
you require IE to be visible then WebClient won't help you at all since it's
not associated with a browser.

I tried your code, with some slight modifications to get it to build, and
none of the events were raised for me either. I tested with IE7,
exclusively.

The fix shown in the following article didn't work either, but it's
interesting to note and supplies some code that supposedly fixes a problem
that seems similar to what you are experiencing:

BUG: The BeforeNavigate2 Event of WebBrowser Control Does Not Fire If Hosted
in a Visual C# .NET Application
http://support.microsoft.com/kb/325079/EN-US/

I tested my own version of the code found in the article above using the
DWebBrowserEvents2 interface instead of DWebBrowserEvents. The code appears
after my signature. Some of the events are raised, so I suspect that this
may have something to do with the fact that IE7 uses tabs now but I'm not
sure how to solve the problem. Maybe my code will give you somewhere to
start :)

--
Dave Sexton
http://davesexton.com/blog

class Program : Component, DWebBrowserEvents2
{
private InternetExplorerClass ie;
private IConnectionPoint icp;
private int cookie = -1;

static void Main(string[] args)
{
Program program = new Program();
program.Run();
}

private void Run()
{
ie = new SHDocVw.InternetExplorerClass();

IConnectionPointContainer icpc = (IConnectionPointContainer) ie;

Guid g = typeof(DWebBrowserEvents2).GUID;
icpc.FindConnectionPoint(ref g, out icp);
icp.Advise(this, out cookie);

object flags = null;
object targetFrameName = "_BLANK";
object postData = null;
object headers = null;
object url = "http://localhost:1652/NewsGroupsWebsite/Default.aspx";

ie.Navigate2(ref url, ref flags, ref targetFrameName, ref postData, ref
headers);
}

protected override void Dispose(bool disposing)
{
if (disposing)
{
if (-1 != cookie)
{
try
{
icp.Unadvise(cookie);
}
catch (COMException ex)
{
Trace.WriteLine("Unadvise error: " + Environment.NewLine +
ex.ToString());
}
}

cookie = -1;
}

base.Dispose(disposing);
}

#region DWebBrowserEvents2 Members
void DWebBrowserEvents2.BeforeNavigate2(object pDisp, ref object URL, ref
object Flags, ref object TargetFrameName, ref object PostData, ref object
Headers, ref bool Cancel)
{
Console.WriteLine("BeforeNavigate2");
}

void DWebBrowserEvents2.ClientToHostWindow(ref int CX, ref int CY)
{
Console.WriteLine("ClientToHostWindow");
}

void DWebBrowserEvents2.CommandStateChange(int Command, bool Enable)
{
Console.WriteLine("CommandStateChange");
}

void DWebBrowserEvents2.DocumentComplete(object pDisp, ref object URL)
{
Console.WriteLine("DocumentComplete");
}

void DWebBrowserEvents2.DownloadBegin()
{
Console.WriteLine("DownloadBegin");
}

void DWebBrowserEvents2.DownloadComplete()
{
Console.WriteLine("DownloadComplete");
}

void DWebBrowserEvents2.FileDownload(bool ActiveDocument, ref bool Cancel)
{
Console.WriteLine("FileDownload");
}

void DWebBrowserEvents2.NavigateComplete2(object pDisp, ref object URL)
{
Console.WriteLine("NavigateComplete2");
}

void DWebBrowserEvents2.NavigateError(object pDisp, ref object URL, ref
object Frame, ref object StatusCode, ref bool Cancel)
{
Console.WriteLine("NavigateError");
}

void DWebBrowserEvents2.NewWindow2(ref object ppDisp, ref bool Cancel)
{
Console.WriteLine("NewWindow2");
}

void DWebBrowserEvents2.NewWindow3(ref object ppDisp, ref bool Cancel, uint
dwFlags, string bstrUrlContext, string bstrUrl)
{
Console.WriteLine("NewWindow3");
}

void DWebBrowserEvents2.OnFullScreen(bool FullScreen)
{
Console.WriteLine("OnFullScreen");
}

void DWebBrowserEvents2.OnMenuBar(bool MenuBar)
{
Console.WriteLine("OnMenuBar");
}

void DWebBrowserEvents2.OnQuit()
{
Console.WriteLine("OnQuit");
}

void DWebBrowserEvents2.OnStatusBar(bool StatusBar)
{
Console.WriteLine("OnStatusBar");
}

void DWebBrowserEvents2.OnTheaterMode(bool TheaterMode)
{
Console.WriteLine("OnTheaterMode");
}

void DWebBrowserEvents2.OnToolBar(bool ToolBar)
{
Console.WriteLine("OnToolBar");
}

void DWebBrowserEvents2.OnVisible(bool Visible)
{
Console.WriteLine("OnVisible");
}

void DWebBrowserEvents2.PrintTemplateInstantiation(obje ct pDisp)
{
Console.WriteLine("PrintTemplateInstantiation");
}

void DWebBrowserEvents2.PrintTemplateTeardown(object pDisp)
{
Console.WriteLine("PrintTemplateTeardown");
}

void DWebBrowserEvents2.PrivacyImpactedStateChange(bool bImpacted)
{
Console.WriteLine("PrivacyImpactedStateChange");
}

void DWebBrowserEvents2.ProgressChange(int Progress, int ProgressMax)
{
Console.WriteLine("ProgressChange");
}

void DWebBrowserEvents2.PropertyChange(string szProperty)
{
Console.WriteLine("PropertyChange");
}

void DWebBrowserEvents2.SetPhishingFilterStatus(int PhishingFilterStatus)
{
Console.WriteLine("SetPhishingFilterStatus");
}

void DWebBrowserEvents2.SetSecureLockIcon(int SecureLockIcon)
{
Console.WriteLine("SetSecureLockIcon");
}

void DWebBrowserEvents2.StatusTextChange(string Text)
{
Console.WriteLine("StatusTextChange");
}

void DWebBrowserEvents2.TitleChange(string Text)
{
Console.WriteLine("TitleChange");
}

void DWebBrowserEvents2.UpdatePageStatus(object pDisp, ref object nPage,
ref object fDone)
{
Console.WriteLine("UpdatePageStatus");
}

void DWebBrowserEvents2.WindowClosing(bool IsChildWindow, ref bool Cancel)
{
Console.WriteLine("WindowClosing");
}

void DWebBrowserEvents2.WindowSetHeight(int Height)
{
Console.WriteLine("WindowSetHeight");
}

void DWebBrowserEvents2.WindowSetLeft(int Left)
{
Console.WriteLine("WindowSetLeft");
}

void DWebBrowserEvents2.WindowSetResizable(bool Resizable)
{
Console.WriteLine("WindowSetResizable");
}

void DWebBrowserEvents2.WindowSetTop(int Top)
{
Console.WriteLine("WindowSetTop");
}

void DWebBrowserEvents2.WindowSetWidth(int Width)
{
Console.WriteLine("WindowSetWidth");
}

void DWebBrowserEvents2.WindowStateChanged(uint dwWindowStateFlags, uint
dwValidFlagsMask)
{
Console.WriteLine("WindowStateChanged");
}
#endregion
}
Dec 28 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: paul b | last post by:
Hello, I have a small problem in PHP an perhaps someone can help me: I have a simple HTML login page with a username and a password field, as well as a submit button, which I have to use for...
4
by: Timothy Madden | last post by:
Hello all I have a little problem and I hope it is simple. I have a form on my page and I have to open a pop-up window with the page serverd after the form submit. I know I can compose the URL...
1
by: Oliver Hoehle | last post by:
Hello! I want to open a new browser-window with javascript and fill some input-fields in this window with predefined values. So the User does not have to edit the input-fields manually but only...
6
by: Mojtaba Faridzad | last post by:
Hi, I am newbie in C# and I am trying to design my first database program and I am trying to find the best solution. The database is MySQL. how do you open your connection in a big...
1
by: michelle | last post by:
Hi -- I'm creating a form in ASP.NET 2.0 (and I'm brand new to .NET). And if the person is new, then I want a blank form to appear and the person will fill all that info in. This works! ...
4
by: jwlum | last post by:
I have the following problem under Internet Explorer only: 1. User fills out form data (myform.php) and clicks a button that fires myFunction() 2. myFunction() spawns a "hello, world" popup page...
3
by: bagya | last post by:
hello friends I'm new to php and mysql. i'm having code like below <html> <head> <javascript function for validation> in the funtion after validations i am calling another php file like
4
by: Samuel Murray | last post by:
G'day everyone I'm not a JavaScript programmer, so I wonder if you could point me in the right direction or simply tell me how to do the following. I'd like to submit a patch for the...
1
by: yaFaheem | last post by:
This is my first exposure to perl Mech when I am trying to autofill a php script. As per perl Mechaize docs, there are numerous functions to fill out a text field and submit. However, what if the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.