Click here to Skip to main content
15,615,155 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
In a button event how do i redirect it to website when the button get clicks in windows application?
Updated 17-Nov-22 23:14pm
Sergey Alexandrovich Kryukov 12-Jun-13 7:51am    
What's the problem? Redirect what? It depends on what you are using. System.Windows.Forms.WebBrowser? System.Windows.Controls.WebBrowser? Something else? It is of course possible (if I understand your question), but what's the problem?


Put that in the button click event. That will open your default web browser to the website, thats the only kind of "redirect" I know of from a windows forms application.
Share this answer
string strUrl = "";
Process proc = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo(strUrl);
proc.StartInfo = startInfo;
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900