|
Hi Friends !
I need some help on Web Browser Control.
If anybody has worked with this control pls share your ideas!
waiting for your ping...(reply)
thanks
|
|
|
|
|
vats the pblm using webbrowser control?Have u tried that?
Plz avoid using Need Help ! as subject line, instead specify your specific subject
|
|
|
|
|
i am using the code like bellow, but it does not work
SHDocVw.InternetExplorer browser;
browser.FileDownload += new DWebBrowserEvents2_FileDownloadEventHandler(browser_FileDownload);
void browser_FileDownload(ref bool Cancel)
{
}
while i download all the event is not fired.
but other events like browser.DocumentComplete, browser.BeforeNavigate2 etc is fired properly
do u have any suggestion
|
|
|
|
|
jasome wrote: SHDocVw.InternetExplorer browser;
browser.FileDownload += new DWebBrowserEvents2_FileDownloadEventHandler(browser_FileDownload);
Is InternetExplorer the WebBrowser control?Which event having this line of code?Have you put a break point and check 2 see if this event is firing at any stage?
|
|
|
|
|
Well i just give the entire code block.
private SHDocVw.InternetExplorer browser;
private SHDocVw.ShellWindows shellWindows;
private ArrayList Current_IE_Handles;
#region Constructors
public Form1()
{
InitializeComponent();
Current_IE_Handles = new ArrayList();
shellWindows = new SHDocVw.ShellWindowsClass();
shellWindows.WindowRegistered += new SHDocVw.DShellWindowsEvents_WindowRegisteredEventHandler(shellWindows_WindowRegistered);
shellWindows.WindowRevoked += new SHDocVw.DShellWindowsEvents_WindowRevokedEventHandler(shellWindows_WindowRevoked);
}
#endregion
private void shellWindows_WindowRegistered(int z)
{
string filnam;
foreach (SHDocVw.InternetExplorer ie in shellWindows)
{
filnam = Path.GetFileNameWithoutExtension(ie.FullName).ToLower();
if (filnam.Equals("iexplore"))
{
browser = ie;
bool check = true;
for (int i = 0; i < Current_IE_Handles.Count; i++)
{
if (Current_IE_Handles[i].ToString() == browser.HWND.ToString())
{
check = false;
}
}
if (check == true)
{
browser.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(browser_DocumentComplete);
browser.FileDownload += new DWebBrowserEvents2_FileDownloadEventHandler(browser_FileDownload);
}
}
}
}
void browser_FileDownload(ref bool Cancel)
{
}
After running this program
when you open Internet Explorer(IE) the DOM object will be created.
and when ever the changes happens in the IE(navigate,document completer,) event will be fired.
using that i have traced all the visited urls,popups,print activity,etc but i dont get event fired for File Download
thanks
|
|
|
|
|
Stop reposting. Your question below had a more appropriate title.
only two letters away from being an asset
|
|
|
|
|
thanks for the comment,
i do so !
Try Different Do Best
Jacob
|
|
|
|
|
Hi all,
Is there any event available to trace file download using C#?
for example : downloading file from GMAIL.
thanks
|
|
|
|
|
jasome wrote: Is there any event available to trace file download using C#?
vat u mean by trace file download?
|
|
|
|
|
thanks for your reply.
i need to get just an event, while downloading the file from IE.
from that i want to know the files that are downloaded.
thanks
|
|
|
|
|
|
Hello,
I'm reading a MID file a nokia ringtone file and I want to convert every byte in it to octet then to hex but I don't know how? I am searching how to sen ring tones?
Thanks
Dad
|
|
|
|
|
To convert byte -> octet and byte -> hex :
byte myByte = 250;
string octet = Convert.ToString(myByte, 8);
string hex = Convert.ToString(myByte, 16);
To send the ring tone, I think you must use the AT command from nokia, see the Manual.
Search it in nokia website for AT command.
Then use SerialPort class for writing AT command to phone.
|
|
|
|
|
I was looking at the Convert Class but not familiar with it and didn't want to do too much reading for someone else
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
so... no reading -> no answer next time.
|
|
|
|
|
But I gave an answer to 1 of the two conversions, surely that is allowed?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I am confused as why you need to convert a Byte to either octet of hex in order to send data? after all both Octet and Hex are just different was to display a byte value. If you want to convert a byte (or int) to string values for hex then...
string hex = myInt.ToString("X");
...I'm not sure of an easy way to convert an int to octet string thou sorry
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
FYI: octet is French for byte, so there is no conversion required at all. What you want is "octal" or base-8 notation.
|
|
|
|
|
After connecting to an instance of IE, i'm trying to control/monitor the events. So far everything works but the filedownload event handler. Anybody have any tips on how to do it? The following (C#) is the syntax for all of my event handlers.
myInternetExplorer.FileDownload += new SHDocVw.DWebBrowserEvents2_FileDownloadEventHandler(OnDownload);
Any clues/pointers would be helpful!
thanks
|
|
|
|
|
how can i make the system restart after installing?c# installer can do this?thanks.
|
|
|
|
|
You can't make an installer force a reboot directly from visual studio project, you need to modify the installer that gets created.
A tool called [annoyingly] Orca is useful, it lets you modify the installer:
http://support.microsoft.com/kb/827020[^]
You'll need to do this every time you re-build the installer package
|
|
|
|
|
keefb,thank you very much!
|
|
|
|
|
Hi guys.
How can I create a RightToLeft ListView like this[^] instead of this one[^] ?
I've changed its RightToLeft property to Yes , but it isn't the one that I need ?
Could you please guide me ?
Thanks
|
|
|
|
|
Have a look at this[^].
Regards
Nuri Ismail
|
|
|
|
|
Hi forum!!!
I have the next question...
i have in my proyect in c#, a form with a picturebox (with a image loaded), and I need to create over my image a floating object which I can to move over my image. this floating object is like the objects in power point (put a rectangle, circle, some shapes) to change its properties with the mouse (width, heigth,...)
How I can do it?
|
|
|
|