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" as shown in the linked thumbnail to the left.
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 again really really simple but I could find almost nowhere online which shows you how. If you head to the Tools > Add/Remove Toolbox items > menu you will see the dialog box to the right. Within this box you have the opportunity to select the Microsoft Web Browser COM component. Check this box and then click "OK"
Now within the toolbox you will see the Microsoft Web Browser icon shown to the right hand side, you can drag and drop this to the windows form and you will have integrated the web browser into your form. The image to the right shows the toolbox with the new Web Browser option.
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. The following code is directly from my initial test file of this little integration. The browser in my integration has been given the name "axWebBrowser1" and on the form loading I set it's location to my website www.paperairplanes.co.uk.
private void Form1_Load(object sender, System.EventArgs e) { axWebBrowser1.Navigate(http://www.paperairplanes.co.uk/); }
I have Zipped up the source code for anyone to use and included it at the following link but this is totally offered up as is and I am not a good programmer at all so I insist you check the code thoroughly before you use it. Download WindowsApplication2.zip
Good luck and I will be sure to post anything fun I do with this technology. I have a history of creating fun little hacks that are useful for me so I hope to post something soon.
Time is my property, my Tian Mu is time. ____ Goethe Abandoned people today, not tomorrow; and, yesterday, but to go to water. - John Locke
Posted by: coach factory store | November 18, 2010 at 11:25 PM
I think that integrating Internet explorer into a windows application it is the best option to have the best search. Indeed, I will integrate that in my windows application. thanks for the information.
Posted by: Viagra Online | November 09, 2010 at 12:53 PM
I really appreciate this kind of information. I hope you can still posting all this for a while. So I just want to said, thanks for the information on this blog! I find it very interesting and entertaining, but you really know that!
Posted by: kamagra Gel | November 09, 2010 at 05:19 AM
*To trust myself, and believe everything nice!
Posted by: christian louboutin shoes | November 05, 2010 at 07:23 PM
It is incredible. Most of these partnerships, you can do better. I have mentioned the experience of one of my events in all places, Im part of - Facebook, English, LibraryThing, eventful, Zvents, redroom - not to mention my own website and some other places I forget . Its obviously too complicated to do on a regular basis. Id much rather just write it once and go anywhere. Keep up the good work!
Posted by: Doing business in Sweden | October 30, 2010 at 01:38 AM
A bank aggregates the activities of many borrowers and lenders. A bank accepts deposits from lenders, on which it pays interest. The bank then lends these deposits to borrowers.
Posted by: high interest savings account | October 21, 2010 at 01:43 AM
I agree with you. Here we know that our life have to have new thought, new type. New details can provide new really feel and new expertise to us. Just like your blog, it take me to some new state. It is so wonderful that I can not leave.
Posted by: Ugg Classic Mini | August 15, 2010 at 06:28 PM
do they have something for mac/linux/snow leopard?
Posted by: managed hosting | August 10, 2010 at 11:43 PM
Every one remembers that our life is high priced, but some people require cash for various stuff and not every person gets big sums money. Thence to receive some home loans or just commercial loan should be good solution.
Posted by: personal loans | July 21, 2010 at 04:27 PM
Friendship is like earthenware: once broken, it can be mended; love is like a mirror: once broken, that ends it.Do you understand?
Posted by: lacoste shoes | July 18, 2010 at 08:25 PM