Results 1 to 5 of 5

Thread: HTML Editor on a VB.net Winform

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2013
    Posts
    91

    HTML Editor on a VB.net Winform

    This has got to be a simple task but I can't find a working solution.
    I have tried WebBrowser component which drags a control onto a form but will not select a whole word on double-click, it won't scroll down the page.

    I have tried cefSharp but that won't even load onto the designer page

    There are several others I have tried but because they are in c# they won't work.

    Does anyone please, have a working WebBrowser control that will work as an HTML editor on a winform without complaining?

    Thanks for looking
    Penfound

    Using VS2017 and VS2019

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Sep 2013
    Posts
    91

    Re: HTML Editor on a VB.net Winform

    Sorry I should the reason I'm doing this. A client wishes to be able to edit his own website, or at least parts of it. I've created the website and am now writing a winforms program to enable him to change various html pages.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: HTML Editor on a VB.net Winform

    Quote Originally Posted by Penfound View Post
    There are several others I have tried but because they are in c# they won't work.
    You do realise that virtually the entire .NET Framework was written in C#, right? Every time you add a TextBox or Button to your form, you're using a control that was written in C#. There's no reason at all that you can't use a control that was written in C# in a VB application. You just have to make sure that it is built into a library, either by the original author or by you, and then you can reference that in your application.

    If you actually mean that the examples of how to use those controls in code is written in C# then there's still no issue. You simply need to write the equivalent VB code, which is generally quite easy. In many cases, it's little more than removing the semicolons from the end of the lines. There are numerous tools that can help, including Instant VB from Tangible Software Solutions. Any code that you still can't work out, you can ask about here.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2013
    Posts
    91

    Re: HTML Editor on a VB.net Winform

    Thank you. I do realise that everything is written in c# or c++ but I'm not familiar with those languages but will have a look at Tangible Software to see if it is any better.

  5. #5
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,401

    Re: HTML Editor on a VB.net Winform

    Quote Originally Posted by Penfound View Post
    Sorry I should the reason I'm doing this. A client wishes to be able to edit his own website, or at least parts of it. I've created the website and am now writing a winforms program to enable him to change various html pages.
    Let him use the server/domains software. I'm sorry but I'd be asking for my money back. You're asking to drop a browser component on form when the client could use a browser to begin with.
    My Github - 1d3nt

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width