Click here to Skip to main content
16,014,472 members
Home / Discussions / C#
   

C#

 
GeneralRe: ListVew.Cursor does not work Pin
cshaaaa27-Jul-05 20:04
cshaaaa27-Jul-05 20:04 
Generalmouse events when the mouse is on a "child control" Pin
badr zrari27-Jul-05 13:36
badr zrari27-Jul-05 13:36 
GeneralRe: mouse events when the mouse is on a "child control" Pin
GflPower27-Jul-05 13:42
GflPower27-Jul-05 13:42 
GeneralRe: mouse events when the mouse is on a "child control" Pin
badr zrari27-Jul-05 14:16
badr zrari27-Jul-05 14:16 
GeneralSerialization Technique Pin
Anonymous27-Jul-05 13:32
Anonymous27-Jul-05 13:32 
GeneralRe: Serialization Technique Pin
Christian Graus27-Jul-05 16:01
protectorChristian Graus27-Jul-05 16:01 
GeneralInternet Explorer Login screen Cancel button Pin
llamaindustries27-Jul-05 13:29
llamaindustries27-Jul-05 13:29 
GeneralCapturing Web Browser Navigation Error... Pin
rcurrie27-Jul-05 13:15
rcurrie27-Jul-05 13:15 
Here's the deal, I have a peer to peer connection where one side pushes across a web address to the other side. Now both applications navigate to this URL and display its contents. I would like to capture any navigation errors that occur...namely if the page cannot be found. Instead of displaying the standard 404 'Page Cannot Be Found' error I'd like to insert my own page, something along the lines of 'Content Server Cannot Be Found'. Now I know there's a NavigationError event that can be thrown, but not sure how to use it...here's a code snippet that I'm working from.

private void item_DoubleClick(object sender, System.EventArgs e)<br />
		{<br />
			Node selNode = this.item.SelectedNode;<br />
			if (selNode != null)<br />
			{<br />
				<br />
				Tag tag = (Tag)selNode.Tag;<br />
				if (tag.type  == TYPE.FILE)<br />
				{	<br />
//load this item into the browser.<br />
					string url = tag.url;<br />
<br />
					if (url != "")<br />
					{<br />
						Shell shell = (Shell)this.ParentForm;<br />
						Object nobj=null;<br />
						string urlval=url;<br />
						<br />
						shell.WB.Navigate(url,ref nobj,ref nobj,ref nobj,ref nobj);<br />
						if (shell.RTC!=null)<br />
						{<br />
							shell.RTC.SendMsg("URL:" + urlval);<br />
						}<br />
					}<br />
				}<br />
			}<br />
		}


Any an all help at capturing the navigation timeout error would be greatly appreciated! Thanks again Smile | :)

~rcurrie
GeneralRe: Capturing Web Browser Navigation Error... Pin
llamaindustries27-Jul-05 13:45
llamaindustries27-Jul-05 13:45 
GeneralRe: Capturing Web Browser Navigation Error... Pin
rcurrie27-Jul-05 14:02
rcurrie27-Jul-05 14:02 
GeneralAnother regex Pin
eggie527-Jul-05 12:19
eggie527-Jul-05 12:19 
GeneralRe: Another regex Pin
Christian Graus27-Jul-05 13:05
protectorChristian Graus27-Jul-05 13:05 
GeneralRe: Another regex Pin
eggie528-Jul-05 6:35
eggie528-Jul-05 6:35 
GeneralRe: Another regex Pin
Christian Graus28-Jul-05 15:20
protectorChristian Graus28-Jul-05 15:20 
GeneralRe: Another regex Pin
eggie529-Jul-05 6:59
eggie529-Jul-05 6:59 
GeneralRe: Another regex Pin
eggie529-Jul-05 7:07
eggie529-Jul-05 7:07 
GeneralRe: Another regex Pin
Christian Graus31-Jul-05 13:20
protectorChristian Graus31-Jul-05 13:20 
GeneralBeep on selected node event Pin
WetRivrRat27-Jul-05 11:55
WetRivrRat27-Jul-05 11:55 
GeneralRe: Beep on selected node event Pin
[Marc]27-Jul-05 12:14
[Marc]27-Jul-05 12:14 
GeneralCarriage Return for Outlook Pin
samoore27-Jul-05 11:40
samoore27-Jul-05 11:40 
GeneralRe: Carriage Return for Outlook Pin
Matt Gerrans27-Jul-05 12:50
Matt Gerrans27-Jul-05 12:50 
GeneralRe: Carriage Return for Outlook Pin
samoore28-Jul-05 3:53
samoore28-Jul-05 3:53 
GeneralRe: Carriage Return for Outlook Pin
Anonymous27-Jul-05 13:07
Anonymous27-Jul-05 13:07 
GeneralRe: Carriage Return for Outlook Pin
samoore28-Jul-05 3:55
samoore28-Jul-05 3:55 
GeneralThe current index in the foreach Pin
cazzz27-Jul-05 10:32
cazzz27-Jul-05 10:32 

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.