BP Forums
Using the Gecko Web Browser control - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9)
+----- Thread: Using the Gecko Web Browser control (/showthread.php?tid=418)



Using the Gecko Web Browser control - openeXpressions - 11-01-2011

Hi all!
Does anyone know how to show a web document in the Gecko Web Browser? Here is the code I have:
Code:
Private Sub RichTextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Mkc_CodeBox1.KeyPress

        GeckoWebBrowser1.Text = RichTextBox1.Text
    End Sub
I had DocumentText before, but it would not permit me to use that.
Any and all help is greatly appreciated.
UtilityBuilder <!-- sWink --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt="Wink" title="Wink" /><!-- sWink -->
P.S- Can you upload the source for the latest HTML-IDEx? What did you use to create the fourth caption button of double arrows?


Re: Using the Gecko Web Browser control - brandonio21 - 11-01-2011

You can try using the following, not sure if it will work
Code:
GeckoWebbrowser1.Document.Text
However, I have no idea. I had difficulties setting the Gecko's text property as well!

And once all the bugs are worked out, HTML-IDEx will be uploaded. What do you mean by the fourth caption button?


Re: Using the Gecko Web Browser control - openeXpressions - 11-01-2011

Would you mind uploading the existing source to codeplex? I've been doing some work on it myself. The fourth caption button is the double arrows in the nonclient area.
Thanks!


Re: Using the Gecko Web Browser control - openeXpressions - 11-01-2011

Sorry to say the aforementioned code did not work.


Re: Using the Gecko Web Browser control - brandonio21 - 11-02-2011

I will upload it in just a few moments!

And try this:
Code:
GeckoWebbrowser1.Document.Body.InnerHtml = "....."



Re: Using the Gecko Web Browser control - openeXpressions - 11-02-2011

Thanks a lot!
Have you noticed any problems when typing double quotes into the codebox?
EDIT:
How did you manage to stop it from throwing an exception when double quotes were typed?


Re: Using the Gecko Web Browser control - brandonio21 - 11-02-2011

No problem! And this has never given me an error.. It just works!


Re: Using the Gecko Web Browser control - openeXpressions - 11-02-2011

Hey that's great! I hope I don't make you feel bad seeing this. I coded it from scratch, but I referenced a lot of your concepts. It's called open eXpressions If you would like me to implement this stuff into HTML-IDEx, I'd be glad to.
<!-- m --><a class="postlink" href="https://sourceforge.net/projects/openexpressions/">https://sourceforge.net/projects/openexpressions/</a><!-- m -->
I changed a lot of things especially the UI. I made sure to include you in the credits box. Would you mind giving me some feedback on it? Thanks!
P.S.- I don't want you to feel that I am undercutting you. If you feel I did something wrong, please say so!


Re: Using the Gecko Web Browser control - brandonio21 - 11-03-2011

That is very nice!! I will personally store this into a folder called "mods" within the HTML-IDEx folder. Although I like some features in the standard HTML-IDEx (Tabs, ability to switch view modes) Yours still looks very nice!


Re: Using the Gecko Web Browser control - openeXpressions - 11-03-2011

If you want to do that, it's alright, but I wouldn't want my mod stealing people who would have gone with yours. I don't want to be undercutting you in any way. Do you have any ideas of how to make the QColorPicker work? Someone asked about that here: <!-- m --><a class="postlink" href="http://www.qios.eu/community/viewtopic.php?f=56&t=207&start=10">http://www.qios.eu/community/viewtopic. ... 7&start=10</a><!-- m -->
but I couldn't make out how it works. Any ideas?


Re: Using the Gecko Web Browser control - brandonio21 - 11-03-2011

Oh you're fine! This application was meant to be built upon by other people! As long as you retain the information in the about page, it works for me. And I have never worked with the QColorPicker, So I have no idea how I could make it work.


Re: Using the Gecko Web Browser control - openeXpressions - 11-05-2011

Would you mind taking a look at it for me? If it's not an inconvenience to you. The QIOS DevSuite has plenty of awesome controls. That thread I linked to more or less said that the person ought to be able to figure it out with the code they provided. I looked at it myself and couldn't figure it out either. If you don't mind, I'd love to have you take a look at it.


Re: Using the Gecko Web Browser control - openeXpressions - 11-08-2011

<!-- m --><a class="postlink" href="http://www.pfgrid.com/HtmlPanel_Dotnet.aspx">http://www.pfgrid.com/HtmlPanel_Dotnet.aspx</a><!-- m -->
This might be really helpful in HTML-IDEx. It looks really awesome.


Re: Using the Gecko Web Browser control - brandonio21 - 11-08-2011

This almost looks exactly like what HTML-IDEx is, minus the more advanced features such as syntax highlighting. I'd much rather make my own <!-- sTongue --><img src="{SMILIES_PATH}/icon_razz.gif" alt="Tongue" title="Razz" /><!-- sTongue -->


Re: Using the Gecko Web Browser control - openeXpressions - 12-01-2011

I still can't get the Gecko code to work. <!-- sCry --><img src="{SMILIES_PATH}/icon_cry.gif" alt="Cry" title="Crying or Very Sad" /><!-- sCry -->
Any more ideas?
P.S- Thanks for all the help you've been so far! I've learned a lot from being here.


Re: Using the Gecko Web Browser control - brandonio21 - 12-03-2011

Hm, what exactly is the problem you are having with it?


Re: Using the Gecko Web Browser control - openeXpressions - 12-03-2011

AH, nevermind. I got it working. Now my biggest concern is autocomplete. BTW, you might want to use opengeckosharp for HTML-IDEx.


Re: Using the Gecko Web Browser control - brandonio21 - 12-04-2011

Nick Wrote:BTW, you might want to use opengeckosharp for HTML-IDEx.
Thanks for the tip! I'll check it out when I get time!


Re: Using the Gecko Web Browser control - openeXpressions - 12-12-2011

You might also like OpenWebkitSHarp. I'm going to give it a shot.