本文整理汇总了C#中System.Windows.Forms.WebBrowserNavigatingEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# WebBrowserNavigatingEventArgs类的具体用法?C# WebBrowserNavigatingEventArgs怎么用?C# WebBrowserNavigatingEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WebBrowserNavigatingEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了WebBrowserNavigatingEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: web_Navigating
private void web_Navigating( object sender, WebBrowserNavigatingEventArgs e )
{
string strUrl = e.Url.ToString();
string strNo = GetNaviNo(strUrl);
GotoPage(strNo);
}
开发者ID:cheng521yun,项目名称:https---github.com-frontflag-FTMZ_CY,代码行数:7,代码来源:Wnd.cs
示例2: c_WebBrowser_Navigating
/// <summary>
/// This event is raised when the user has navigated within the web browser.
/// </summary>
/// <param name="sender">The sender of the event.</param>
/// <param name="e">The navigation event information.</param>
private void c_WebBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
Uri uri = e.Url;
if (uri.ToString().StartsWith("about:"))
{
e.Cancel = true;
Dictionary<String, String> query = this.GetDictionaryFromQuery(uri.Query);
switch (uri.LocalPath)
{
case "solution":
switch (query["mode"])
{
case "new":
// Call the "New Solution" menu option.
new Platform.Menus.Definitions.Solution.New().OnActivate();
break;
case "open":
// Call the "Open Solution" menu option.
new Platform.Menus.Definitions.Solution.Open().OnActivate();
break;
}
break;
case "tutorial":
MessageBox.Show(
"The selected tutorial is currently unavailable.",
"Tutorial Unavailable",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
break;
}
}
}
开发者ID:rudybear,项目名称:moai-ide,代码行数:39,代码来源:Designer.cs
示例3: browser_Navigating
private void browser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (!pageLoaded) return;
string url = e.Url.ToString();
Process.Start(url);
e.Cancel = true;
}
开发者ID:spncrgr,项目名称:connector-idea,代码行数:7,代码来源:About.cs
示例4: webBrowser1_Navigating
void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
btnReloadCancel.Image = (Image)Properties.Resources.cross;
pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
pictureBox1.Image = (Image)Properties.Resources.loadingAnimation;
loading = true;
}
开发者ID:DeepBlue42,项目名称:AlwaysOnTopBrowser,代码行数:7,代码来源:Form1.cs
示例5: OnSipRequest
protected virtual void OnSipRequest(WebBrowserNavigatingEventArgs e)
{
SipRequestArgs srArgs = new SipRequestArgs();
srArgs.Command = e.Url.Host.ToString();
string original = e.Url.PathAndQuery.ToString();
original = original.Replace("&hash;", "#");
string[] swp = original.Split('?');
if (swp.Length == 1) {
//no arguments
srArgs.Command = original;
} else {
srArgs.Command = swp[0];
foreach (string kvpair in swp[1].Split('&')) {
swp = kvpair.Split('=');
string key = swp[0].ToLower();
string val="";
if (swp.Length > 1) {
//argument with no value
val = Uri.UnescapeDataString(swp[1]);
}
srArgs.Arguments.Add(key, val);
}
}
MySipRequest(this, srArgs);
e.Cancel = srArgs.Cancel;
}
开发者ID:raffaeleguidi,项目名称:Click2Phone,代码行数:27,代码来源:SipAwareBrowser.cs
示例6: webBrowser_Navigating
void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (selectButton != null)
{
selectButton.Enabled = false;
}
}
开发者ID:gahadzikwa,项目名称:GAPP,代码行数:7,代码来源:BrowserScriptSelectGeocache.cs
示例7: webBrowser_Navigating
private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (initializing)
return;
e.Cancel = true;
string url = e.Url.OriginalString;
// this is not abstracted away as long as we have only a very limited number of functionalities:
if (url != null && url.StartsWith(XCNS, StringComparison.InvariantCultureIgnoreCase))
{
if (url.Contains("HelpContents"))
{
XenAdmin.Help.HelpManager.Launch(null);
}
else if (url.Contains("AddServer"))
{
new AddHostCommand(Program.MainWindow, this).Execute();
}
}
else
{
Program.OpenURL(url);
}
}
开发者ID:robhoes,项目名称:xenadmin,代码行数:26,代码来源:HomePage.cs
示例8: DoScreenshot
/// <summary>
/// This method creates a new form with a webbrowser of correct size on it,
/// to make a fullsize website screenhot.
/// </summary>
/// <param name="navigatingArgs">The <see cref="WebBrowserNavigatingEventArgs"/> instance containing the event data,
/// especially the url.</param>
/// <param name="filename">The filename to save the screenshot to.</param>
public static void DoScreenshot(WebBrowserNavigatingEventArgs navigatingArgs, string filename)
{
newTargetUrl = navigatingArgs.Url;
newScreenshotFilename = filename;
var tempBrowser = new WebBrowser();
var dummyForm = new Form { ClientSize = new Size(1, 1), FormBorderStyle = FormBorderStyle.None };
dummyForm.ShowInTaskbar = false;
dummyForm.Controls.Add(tempBrowser);
dummyForm.Show();
tempBrowser.ScrollBarsEnabled = true;
tempBrowser.ScriptErrorsSuppressed = true;
tempBrowser.DocumentCompleted += WebBrowserDocumentCompleted;
if (navigatingArgs.TargetFrameName != string.Empty)
{
tempBrowser.Navigate(navigatingArgs.Url, navigatingArgs.TargetFrameName);
}
else
{
tempBrowser.Navigate(newTargetUrl);
}
while (tempBrowser.ReadyState != WebBrowserReadyState.Complete)
{
Application.DoEvents();
}
tempBrowser.Dispose();
}
开发者ID:DeSciL,项目名称:Ogama,代码行数:37,代码来源:WebsiteScreenshot.cs
示例9: br_Navigating
void br_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (e.Url.AbsoluteUri.StartsWith(endLink))
{
// parse result
string urlEnd = e.Url.ToString().Split('#')[1];
Dictionary<string, string> values = new Dictionary<string, string>();
string[] nameValues = urlEnd.Split(new[] { "&" }, StringSplitOptions.RemoveEmptyEntries);
foreach (var nameValue in nameValues)
{
// Separate this values by '=' so you get name/key and value as separated field in array
string[] temp = nameValue.Split(new[] { "=" }, StringSplitOptions.RemoveEmptyEntries);
if (temp.Length == 2)
{
values.Add(temp[0], WebUtility.UrlDecode(temp[1]));
}
}
Token = new TokenResult();
Token.AccessToken = values["access_token"];
Token.InstanceUrl = values["instance_url"];
Token.RefreshToken = values["refresh_token"];
// close window
this.Close();
}
}
开发者ID:DemosAndTrials,项目名称:DemoWebBrowserInClassLibrary,代码行数:28,代码来源:WebForm.cs
示例10: webBrowser_Navigating
private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e) {
if (e.Url.Host.Equals("gap.exec")) {
e.Cancel = true;
String res = commandManager.processInstruction(e.Url.AbsolutePath);
webBrowser.Navigate(new Uri("javascript:" + res + ";abc.x=1;//JS error!"));
}
}
开发者ID:RobIncAMDSPhD,项目名称:phonegap,代码行数:7,代码来源:WebForm.cs
示例11: helpBrowser_Navigating
private void helpBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (e.Url.Host.Length != 0)
{
e.Cancel = true;
Process.Start(e.Url.ToString());
}
}
开发者ID:AHorak,项目名称:vs-window-title-changer,代码行数:8,代码来源:TitleSetupEditorHelp.cs
示例12: Browser_Navigating
public void Browser_Navigating(Object b, WebBrowserNavigatingEventArgs x)
{
Core.History("Navigating()");
if (x.Url.ToString() == "about:blank")
{
return;
}
}
开发者ID:justinwillcott,项目名称:huggle,代码行数:8,代码来源:SpecialBrowser.cs
示例13: wbRequest_Navigating
private void wbRequest_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
//if (e.Url.ToString().StartsWith(_callbackUrl.ToString()))
//{
// _facebookService.ReceiveRequestData(e.Url);
// Close();
//}
}
开发者ID:jeffdeville,项目名称:FacebookDeveloperToolkit---Fork-at-37335,代码行数:8,代码来源:RequestSelection.cs
示例14: webHelp_Navigating
private void webHelp_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (e.Url.ToString() != helpFile)
{
e.Cancel = true;
System.Diagnostics.Process.Start(e.Url.ToString());
}
}
开发者ID:awesomist,项目名称:mcsLaunch,代码行数:8,代码来源:HelpForm.cs
示例15: webBrowser1_Navigating
private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (!or)
{
e.Cancel = true;
Core.openLink(e.Url.OriginalString);
}
}
开发者ID:jariz,项目名称:EasyCapture,代码行数:8,代码来源:About.cs
示例16: WebNavigating
private void WebNavigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (m_NoNav)
{
System.Diagnostics.Process.Start(e.Url.ToString());
e.Cancel = true;
}
}
开发者ID:ssube,项目名称:VoodooShader,代码行数:8,代码来源:AboutVoodoo.cs
示例17: webBrowser_Navigating
private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
//cancel the current event
e.Cancel = true;
//this opens the URL in the user's default browser
Process.Start(e.Url.ToString());
}
开发者ID:huoxudong125,项目名称:VideoSearch,代码行数:8,代码来源:AdWidget.cs
示例18: webBrowser1_Navigating
private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (webBrowser1.Visible == true)
{
System.Diagnostics.Process.Start(e.Url.ToString());
e.Cancel = true;
}
}
开发者ID:mootoomeepo,项目名称:mootoo.meepo,代码行数:8,代码来源:frmMainFeedPuzzler.cs
示例19: webBrowser1_Navigating
void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (webBrowser1.Document != null)
{
e.Cancel = true;
HtmlElement contents = Contents;
contents.InnerHtml = GenerateContent(e.Url.PathAndQuery);
}
}
开发者ID:killbug2004,项目名称:reko,代码行数:9,代码来源:WebDialog.cs
示例20: webBrowser1_Navigating
void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (e.Url.Host.Length>0 && redirect_uri.Contains(e.Url.Host))
{
string Code = e.Url.Fragment.Replace("#access_token=", "");
this.Code = Code.Split('&')[0];
this.Close();
}
}
开发者ID:Hagser,项目名称:csharp,代码行数:9,代码来源:Logon.cs
注:本文中的System.Windows.Forms.WebBrowserNavigatingEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论