Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
AnswerRe: Apartment in C# Pin
Darren_29-May-06 21:02
Darren_29-May-06 21:02 
QuestionFinding out whether a WAV file is completed recording Pin
coolestCoder29-May-06 20:09
coolestCoder29-May-06 20:09 
AnswerRe: Finding out whether a WAV file is completed recording Pin
lmoelleb29-May-06 20:25
lmoelleb29-May-06 20:25 
AnswerRe: Finding out whether a WAV file is completed recording [modified] Pin
Darren_29-May-06 20:35
Darren_29-May-06 20:35 
Questionhow can I manage some links in html page that load with webbrowser within a win app ? Pin
Nafiseh Salmani29-May-06 19:56
Nafiseh Salmani29-May-06 19:56 
AnswerRe: how can I manage some links in html page that load with webbrowser within a win app ? Pin
lmoelleb29-May-06 23:06
lmoelleb29-May-06 23:06 
QuestionRe: how can I manage some links in html page that load with webbrowser within a win app ? Pin
Nafiseh Salmani29-May-06 23:12
Nafiseh Salmani29-May-06 23:12 
AnswerRe: how can I manage some links in html page that load with webbrowser within a win app ? Pin
lmoelleb30-May-06 1:33
lmoelleb30-May-06 1:33 
It is all in MSDN - look up the WebBrowser control (obviously).

The event is called "Navigating" as far as I can see.

It will fire for each click on a link. In the event handler do the following:

1) Cancel the navigation (a property or method on the event args)
2) Look at the target URL (it is in the event args) to find out which page the user requested
3) Fetch the HTML for that page from your DB
4) Set the HTML of the WebBrowser control to the new content

Notice that you will probably (can't remember it for sure) get an initial "Navigating" event fired when you initialize the WebBrowser control. Make sure you leave this alone (do not cancel it). Use the debugger to see if you get something like this, and how the URL looks so you can avoid canceling.

Obviously this is for .NET 2.0 - I can't remember how to do this (or if it is possible at all) with the horrible COM generated wrapper for the web browser in 1.1.
QuestionRe: how can I manage some links in html page that load with webbrowser within a win app ? Pin
Nafiseh Salmani30-May-06 2:47
Nafiseh Salmani30-May-06 2:47 
AnswerRe: how can I manage some links in html page that load with webbrowser within a win app ? Pin
lmoelleb30-May-06 3:16
lmoelleb30-May-06 3:16 
QuestionUrgent Pin
Shiv529-May-06 19:35
Shiv529-May-06 19:35 
AnswerRe: Urgent Pin
Darren_29-May-06 19:48
Darren_29-May-06 19:48 
AnswerRe: Urgent Pin
Colin Angus Mackay29-May-06 20:04
Colin Angus Mackay29-May-06 20:04 
AnswerRe: Urgent Pin
albCode29-May-06 20:58
albCode29-May-06 20:58 
QuestionGetting the ScrollBar offset Pin
Darren_29-May-06 19:19
Darren_29-May-06 19:19 
QuestionHow do i read and Execute a bunch of .Sql at the same time using C# Pin
Shiv529-May-06 18:24
Shiv529-May-06 18:24 
AnswerRe: How do i read and Execute a bunch of .Sql at the same time using C# Pin
KevinMac29-May-06 18:56
KevinMac29-May-06 18:56 
QuestionAdd a control on menu Pin
Dinh Thang29-May-06 17:46
Dinh Thang29-May-06 17:46 
AnswerRe: Add a control on menu Pin
ekynox29-May-06 19:05
ekynox29-May-06 19:05 
QuestionDisplay text using labels -- very slow Pin
printscreen1234529-May-06 16:47
printscreen1234529-May-06 16:47 
AnswerRe: Display text using labels -- very slow Pin
leppie29-May-06 17:03
leppie29-May-06 17:03 
GeneralRe: Display text using labels -- very slow Pin
printscreen1234529-May-06 17:38
printscreen1234529-May-06 17:38 
GeneralRe: Display text using labels -- very slow [modified] Pin
printscreen1234529-May-06 21:52
printscreen1234529-May-06 21:52 
AnswerRe: Display text using labels -- very slow Pin
Robert Rohde29-May-06 19:13
Robert Rohde29-May-06 19:13 
GeneralRe: Display text using labels -- very slow Pin
printscreen1234529-May-06 22:59
printscreen1234529-May-06 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.