本文整理汇总了C#中WebBrowser.Show方法的典型用法代码示例。如果您正苦于以下问题:C# WebBrowser.Show方法的具体用法?C# WebBrowser.Show怎么用?C# WebBrowser.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebBrowser
的用法示例。
在下文中一共展示了WebBrowser.Show方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnGetBotToken_Click
private void btnGetBotToken_Click(object sender, EventArgs e)
{
WebBrowser botBrowser = new WebBrowser();
botBrowser.Show();
botBrowser.Pattern = "tmi/#access_token(\\w+)";
botBrowser.Browser.Navigate("https://api.twitch.tv/kraken/oauth2/authorize?response_type=token&client_id=q6batx0epp608isickayubi39itsckt&redirect_uri=http%3A%2F%2Ftwitchapps.com%2Ftmi%2F&scope=chat_login");
}
示例2: OpenGitHubInBrowser
public void OpenGitHubInBrowser(object sender, RoutedEventArgs e)
{
var gitHubWindow = new WebBrowser();
gitHubWindow.Show();
}
示例3: Launch
//Funtions
public void Launch()
{
//Call the App
switch (CurrentModul)
{
case AppsModules.PDFListe:
PDFList PDFListForm = new PDFList(DirectoryPaths[SelModul]);
PDFListForm.Show();
break;
case AppsModules.Bildergalerie:
Gallery GalleryForm = new Gallery(DirectoryPaths[SelModul]);
GalleryForm.Show();
break;
case AppsModules.Maps:
Maps MapsForm = new Maps(DirectoryPaths[SelModul]);
MapsForm.Show();
break;
case AppsModules.Video:
VideoViewer VideoForm = new VideoViewer(DirectoryPaths[SelModul]);
VideoForm.Show();
break;
case AppsModules.Puzzle:
Puzzle PuzzleForm = new Puzzle(DirectoryPaths[SelModul]);
PuzzleForm.Show();
break;
case AppsModules.PDFFlip:
PDFFlip FlipForm = new PDFFlip(DirectoryPaths[SelModul]);
FlipForm.Show();
break;
case AppsModules.WebBrowser:
WebBrowser myBrowser = new WebBrowser(DirectoryPaths[SelModul]);
myBrowser.Show();
break;
case AppsModules.Voting:
Voting VotingForm = new Voting(DirectoryPaths[SelModul]);
VotingForm.Show();
break;
case AppsModules.Memo:
Memo MemoForm = new Memo(DirectoryPaths[SelModul]);
MemoForm.Show();
break;
case AppsModules.Collage:
Collage CollageForm = new Collage(DirectoryPaths[SelModul]);
CollageForm.Show();
break;
}
}
示例4: Button_Click_2
private void Button_Click_2(object sender, RoutedEventArgs e)
{
if (!Global.webbrowseropenflag)
{
WebBrowser web = new WebBrowser();
web.MainWindowPointer = this;
web.WindowState = WindowState.Maximized;
web.Show();
Global.webbrowseropenflag = true;
}
}
示例5: siteWebToolStripMenuItem_Click
private void siteWebToolStripMenuItem_Click(object sender, EventArgs e)
{
WebBrowser wb = new WebBrowser();
wb.Show();
}