I've looked everywhere, including the MSDN forums, but no one has even mentioned this or ways to do it. The basic idea is that once a Button is dragged from the toolkit, how do you then link that button to a web page, ie I have a 'Facebook' button, how do I then make it so that when the button is clicked, Facebook opens in a new browser window?
C# – How to get a button to open a web page
cvisual studio 2010
Related Topic
- C# – How to enumerate an enum
- C# – How to create an Excel (.XLS and .XLSX) file in C# without installing Microsoft Office
- C# – How to get a consistent byte representation of strings in C# without manually specifying an encoding
- C# – Get int value from enum in C#
- C# – How to generate a random int number
- C# – How to make an HTTP POST web request
- C# – How to open in default browser in C#
Best Answer
Once you've dragged the button onto the designer, you can double-click on it to open up the Button's
Click
event handler. This is the code that will get run when the user clicks. You can then add the required logic, ie: