Displaying HTML in a winform app


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Displaying HTML in a winform app

  1. #1
    Join Date
    Sep 2004
    Posts
    77

    Displaying HTML in a winform app

    Hi,

    I'm writing a basic web page builder (winforms) and currently im using a dhtmledit control. I use a sum total of zero of the in-built editing commands but instead hold the html in a string. For any editing I update this string and assign it to dhtmled.documentHTML. Effectively I am just using it as an HTML display, the only other part I use is capturing click events so that I can grab the element that was clicked (via Dhtmled.DOM.parentWindow.event.srcElement).

    I've used this method as it was used in a VB6 version of the app. It feels that this is a bit overkill, seeing as I'm using none of the dhtmled's main functionality, is there a more lightweight control that will simply display html passed in a string and give me the ability to detect the srcElement of a click (with the ability to 'rollout' to containing tags via the .parentElement property)?

    I seen some stuff regarding the webbrowser control, this looked promising http://www.devx.com/vb2themax/Tip/18798 but I couldn't find a way to push html into it other than webbrowser.navigate which is useless (as far as I can see) when the html is held in memory. I've had a look through some other 3rd party components but can't find anything that seems to match my needs.

    Any suggestions, links, etc welcome.

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    How about this one instead?

    http://www.devx.com/tips/Tip/13582
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  3. #3
    Join Date
    Sep 2004
    Posts
    77
    Thanks, I found another snippet of code for forcing html into a webbrowser from memory, I might take a look and see if this might be a better road to go down, although I've managed to tame the dhtmled control a wee bit and it's working well for me. I look forward to the day when there is a native .Net html renderer available (interop is scary )

Similar Threads

  1. Replies: 0
    Last Post: 11-10-2006, 10:46 PM
  2. VB App read html code
    By Dralion in forum VB Classic
    Replies: 6
    Last Post: 02-01-2006, 05:06 PM
  3. displaying HTML in a frame?
    By mat.311275 in forum Web
    Replies: 2
    Last Post: 04-25-2001, 07:47 AM
  4. Keeping an app from displaying in Task Manager
    By John Nelson in forum VB Classic
    Replies: 8
    Last Post: 02-15-2001, 08:15 AM
  5. Keeping an app from displaying in Task Manager
    By John Nelson in forum VB Classic
    Replies: 0
    Last Post: 02-14-2001, 02:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center