I got VS to learn Vb not C# But there is so little code just to initialize the webkit engine I thought I would try it.. and Someone recently said when I thought I could mix C# and VB programs;
" Someone said:
Not quite.... Once you create a VB Project, all the code in that project needs to be VB. If you start a C# Project, the code needs to be C# (rumor has it that may change at some point in the future, but at the moment, you can't mix and match languages within a project.) BUT
What you CAN do, is within a SOLUTION mix and match your projects. So you could have a project with all your UI elements done in VB.NET, and then have a data access project that uses C#... it will all work very nicely. It is only within a single project that you can't mix languages. "
So I was hoping to start the browser in C# so it would work and then finish the browser in VB.. ( If Possible) -
Now.. this is the URL to webkit.NET's download and their instructions that are made for VS C# that I cannot get to work.
Webkit.NET home page with download: http://webkitdotnet....e.net/index.php
Webkit.NET Tutorial on how to set up the simple browser in Visual studio C#:
If you read through this tutorial you will see exactly what they tell me to do. I am copying and pasting this code in exactly and I am getting these errors right away.
Error 1 The name 'Form1_Load' does not exist in the current context
Error 2 The name 'webKitBrowser1_Navigated' does not exist in the current context
I have done exactly as they said.. placed the Bin folder on my C drive and told the toolbox to choose item webKitBrowser.dll and use that in the form.
Can anyone please follow this and see if you can figure out where I am going wrong?
EDIT: I thought a screenshot may be helpful. I should have thought of this earlier LOL.
First they tell me how to add the control:
" Lets begin by downloading the latest binary release of WebKit .NET from the project download page. Extract the contents of the included 'bin' folder to somewhere on your local machine, for example D:\webkitdotnet\bin.
Next, fire up Visual C# and create a new Windows Forms Application.
With the project created, you should be presented with a blank 'Form1' in the Windows Forms designer. To use the control in the designer, right click the toolbox and select Choose Items -> .NET Framework Components. Click 'Browse...', navigate to the WebKit .NET directory and select WebKitBrowser.dll.
Make sure the checkbox is ticked and click OK. Select the WebKitBrowser in the toolbox and drag it onto the empty form. In the properties window, change the 'Dock' property to 'Bottom' and resize the control leaving enough room at the top of the form for a navigation bar. "
Select a TextBox from the toolbox and drag it onto the top of the form, moving and resizing to suit. Do the same with a Button control. Change the 'Text' property of the button to '&Go!'
Here is what they tell me to do after adding the control.:
Here is my code:
Also, they do have a forum at sourceforge but it's rss feed based and I have no idea how to use it.. plus it has few threads and replies..
Someone is trying to make a VB version of the code so it will work in VB instead of C.. I can't seem to access this info - Does anyone think they could figure this out for me? It is only a few simple lines of code as you will see.
Edit: I am using Visual Studio 2008 Professional Edition.
This post has been edited by MrDot->".": 15 January 2010 - 03:38 AM