|
Jon Braunsma wrote: What would couse the DocumentCompelted not to fire?
The server not sending a complete document or a missing HTML closing tag.
|
|
|
|
|
You could always fire your own event when you get a response back from the server..45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
For debugging purposes, you could try the following:
1. get the target URL from the Navigating event;
2. cancel the Navigation;
3. use your own code to fetch the page text, using HttpWebRequest and HttpWebResponse;
4. when the response is in, stuff the result into WebBrowser.DocumentText
You can now add logging/debugging stuff to step 3 until you discover what is going on; then work from there.
BTW: I am not suggesting you do this as the final solution! A timeout/retry scheme seems fine, the one problem with it is you'll never know what exactly is going wrong.
|
|
|
|
|
I like the idea of digging in to this deeper. I need to figure out what is causing this event not to fire and this seems like a very good way to help isolate it. Thank you.
|
|
|
|
|
Thank you all for the input. By using a combination of solutions recommended, I was able to detect the condition. After the navigated event fires, I set a timer and if the documentcomplete event does not fire in the specified time, I can immediately detect the issue and alert the user. This is an acceptible work around for now. I will dig more in to the issue later.
Thank you all for the advice.
|
|
|
|
|
hi all,
I had developed one application in c#. My problem is there are 3 forms in my application but first forms controls get hide automatically. control is display in property list but not shown on the form.
Why it is happening?
any solution for this.
Its urgent.
|
|
|
|
|
any code can we see? EASY COME EASY GO
|
|
|
|
|
there is not any code problem?
Control is getting hide automatically?
|
|
|
|
|
If the program isn't doing what you intended, the problem is in the code..45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
sn0011 wrote: Control is getting hide automatically?
There is no such thing. You have a code problem somewhere.
What are you doing in Form Load? Do you have any other process that is consuming the CPU in that form? Does the app still respond on other forms? What does the code look like?
|
|
|
|
|
I have one datagridview with three columns first is for category dropdown second for product dropdown third for price textbox all are datagridviewcolumns is taken.
My problem is that i want to show only those product whose category is selected from category dropdown and then price for those products which is selected by product dropdown. This is for each row for datagridview.
Now i want to save and update them in database with three fields 1.id 2.categoryid 3.productid 4.price and if there is any row in table then it populate when form load with rows in datagridview with appropiate value and then i want to change it again it give facility to change and add new record and then it save or update the data.
How Please give me any code or link if anybody have.
Thanks.
Diwakar
|
|
|
|
|
URGENTLY,, i wanna build NetMeeting, how to built it, what the function in this software??
|
|
|
|
|
oh, oh, oh!! How exciting, yipeee!
We are so happy you shared and want to include us all in your project!
Let us all research everything for you, compose relevant documentation and then code it, showing you every step of the way how and why stuff works like it does!
Can we, please?var question = (_2b || !(_2b));
|
|
|
|
|
I've got a spare afternoon on Friday, if you want to split the work? You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
Good day, please help.
I have this program I'm busy writing and I have no clue how to do this: when a user starts a program, I want to "intercept" and "pause" the program while its loading and prompt the user to "ALLOW" or "KILL" the program. If anybody has used Kaspersky's Internet Security, it is implemented in there - an alert pops up prompting the user to allow the program to finish executing or cancel it.
Please help, charles
|
|
|
|
|
I posted a tip on using subsequent forms from the app class. Have the first form be the spalsh panel (or whatever you want to call it), and code accordingly. The splash panel would spawn a thread that performed the startup code, and if startup completed before the user pressed the cancel button, the first form would close and the 2nd form would be displayed.
Here's my tip:
Multiple Subsequent Main Forms In C# Apps[^].45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
I have an app for a headless Win CE device written in C# using VS2005. Can anyone tell me how to reboot the device from within my code please?
|
|
|
|
|
Application.Restart or start a new instance of your program and use Application.Exit to end the current instance. Or run a different program that detects if an instance of your main program is running (perhaps by looking through the names of all the currently running processes), start that up, end your current program, at which point it will start a new instance, after which that extra program will close itself.
|
|
|
|
|
Thanks, but I need to re-boot CE, not just restart my application.
|
|
|
|
|
here is the code snippet from my Shutdown Manager
enum ExitWindowsAction : uint
{
EWX_LOGOFF = 0,
EWX_SHUTDOWN = 1,
EWX_REBOOT = 2,
EWX_FORCE = 4,
EWX_POWEROFF = 8
}
[DllImport("aygshell.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool ExitWindowsEx([MarshalAs(UnmanagedType.U4)]uint dwFlags, [MarshalAs(UnmanagedType.U4)]uint dwReserved);
[DllImport("aygshell.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool ExitWindowsEx([MarshalAs(UnmanagedType.U4)] ExitWindowsAction uFlags, [MarshalAs(UnmanagedType.U4)] uint dwReserved);
private void button1_Click(object sender, EventArgs e)
{
ExitWindowsEx(ExitWindowsAction.EWX_REBOOT, 0);
}
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Can any one tell me, How to configure and use Enterprise Library security application block in .NET windows application?
Any example will be more helpful.
|
|
|
|
|
I suggest you read the Enterprise Library documentation, the process is too involved and too implementation specific (i.e. we don't know what you want to acheieve with the library) for you to get an full answer here. If you have a specific problem setting up the blocks then post it here. Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
Thanks for reply,
i read Enterprise library there are some example to implement security block in web application also, there are so many example at different sites to implement Security application block in web Application, but if we want to
achieve the same thing in windows application using enterprise library, then
How can we?
|
|
|
|
|
Google is your friend..45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
How to create dynamic objects in C# in Runtime.
For example, I will list no of drives present in a System if it is 6 drives i have to create 6 Different objects can any one help me regarding this...
string []drives=GetLogicalDrives();
for(int i=0;i
|
|
|
|