Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: 3-D pushbutton control Pin
Christian Graus22-Feb-08 14:53
protectorChristian Graus22-Feb-08 14:53 
GeneralRe: 3-D pushbutton control Pin
zqx322-Feb-08 17:58
zqx322-Feb-08 17:58 
GeneralRe: 3-D pushbutton control Pin
Ravi Bhavnani23-Feb-08 4:59
professionalRavi Bhavnani23-Feb-08 4:59 
GeneralAnybody can help me how to use "search" method in Smart Device Application VB.Net 2003 in c# Pin
daniel293522-Feb-08 11:43
daniel293522-Feb-08 11:43 
Question(XNA) Calculate FPS [modified] Please? Pin
MasterSharp22-Feb-08 11:02
MasterSharp22-Feb-08 11:02 
AnswerRe: (XNA) Calculate FPS [modified] Please? Pin
User 665823-Feb-08 1:07
User 665823-Feb-08 1:07 
GeneralBlock windows applications from dotnet webbrowser Pin
ric9422-Feb-08 9:13
ric9422-Feb-08 9:13 
AnswerRe: Block windows applications from dotnet webbrowser Pin
Spacix One22-Feb-08 10:09
Spacix One22-Feb-08 10:09 
Look at navigating event of the web browser control.
this.WebBrowser1.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler( this.WebBrowser1_Navigating );

The event get sent two parameters; normally named sender and e
(object sender, WebBrowserNavigatingEventArgs e)

e has some properties and methods. Two of the properties are "Url" and "Cancel".

If you set Cancel to true then it prevents navagation. So you can do something like the following:

if(e.Url.ToString().ToLower().StartsWith("mailto:"))
{
e.Cancel = true;
}



-Spacix
All your skynet questions[^] belong to solved

GeneralRe: Block windows applications from dotnet webbrowser Pin
ric9422-Feb-08 10:14
ric9422-Feb-08 10:14 
GeneralHelp me with a program. Pin
Alex50122-Feb-08 8:30
Alex50122-Feb-08 8:30 
GeneralRe: Help me with a program. Pin
Skippums22-Feb-08 9:50
Skippums22-Feb-08 9:50 
GeneralRe: Help me with a program. Pin
Christian Graus22-Feb-08 10:24
protectorChristian Graus22-Feb-08 10:24 
GeneralRe: Help me with a program. Pin
Spacix One22-Feb-08 10:35
Spacix One22-Feb-08 10:35 
GeneralProblem with ToolStripTextBox Pin
stancrm22-Feb-08 5:15
stancrm22-Feb-08 5:15 
GeneralRe: Problem with ToolStripTextBox Pin
Judah Gabriel Himango22-Feb-08 6:55
sponsorJudah Gabriel Himango22-Feb-08 6:55 
GeneralRe: Problem with ToolStripTextBox Pin
stancrm24-Feb-08 20:14
stancrm24-Feb-08 20:14 
GeneralRe: Problem with ToolStripTextBox Pin
Judah Gabriel Himango25-Feb-08 11:19
sponsorJudah Gabriel Himango25-Feb-08 11:19 
GeneralRe: Problem with ToolStripTextBox Pin
stancrm25-Feb-08 19:59
stancrm25-Feb-08 19:59 
QuestionHow to dock a form ? Pin
Aravinthan22-Feb-08 4:16
Aravinthan22-Feb-08 4:16 
GeneralRe: How to dock a form ? Pin
Dr. Emmett Brown22-Feb-08 4:55
Dr. Emmett Brown22-Feb-08 4:55 
GeneralRe: How to dock a form ? Pin
Aravinthan22-Feb-08 17:59
Aravinthan22-Feb-08 17:59 
GeneralRe: How to dock a form ? Pin
Dr. Emmett Brown22-Feb-08 5:06
Dr. Emmett Brown22-Feb-08 5:06 
GeneralRe: How to dock a form ? Pin
Judah Gabriel Himango22-Feb-08 6:54
sponsorJudah Gabriel Himango22-Feb-08 6:54 
GeneralMake a .dll file Pin
Strategic_Thinker22-Feb-08 3:58
Strategic_Thinker22-Feb-08 3:58 
GeneralRe: Make a .dll file Pin
Ravi Bhavnani22-Feb-08 4:08
professionalRavi Bhavnani22-Feb-08 4:08 

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.