Last night was a really interesting play around for me with C Sharp (C#). I decided a while back that it is a huge opportunity to be able to place widgets on users’ desktops in Windows but quite simply I did not know how. Off the back of that idea I bought Visual Studio .NET and decided to teach myself how to program in C#. The book I used to teach myself is called Microsoft Visual C#.NET Step by Step and is written by John Sharp and Jon Jagger. The two Jonnies have done a fantastic job in this book of helping you step by step work your way into C# and I am very grateful.
There are a few simple steps for getting a browser integrated into a windows application using Visual Studio and Windows C# .NET. Initially you need to set yourself up a new project of the type “Windows Application”. Once you have created this new application you need to be able to insert the webbrowser into the C# form under the design option in the Visual Studio .net interface. The way you add the webbrowser is through Tools > Add/Remove Toolbox items > menu where you select the Microsoft Web Browser COM component.
Now within the toolbox you will see the Microsoft Web Browser icon, you can drag and drop this to the windows form and you will have integrated the web browser into your form. Now you have your web browser in your form you are pretty much done but of course you will see nothing in this form unless you set a base referring URL within the code.
Good luck and I will be sure to post anything fun I do with this technology.



Leave a Reply