473,809 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rendering HTML without using MSHTML/IE

I'm trying to create a chat program, however I find it most of the
time these days clients use HTML or some sort of markup language to
render text on the screen. My question is how would I render HTML
without using MSHTML/IE? I already have a feeling that I'll have to
create my own control. How would I go on doing this? (I would like to
be able to edit/select text in a WinForm) Maybe someone can point to
ways of enhancing the RichText control? Or somehow using GDI+? Any
links would be helpful as that Google brings up stuff regarding to
ASP.NET

Many thanks
David (guardian65_3da ve at hotmail dot com)
Nov 13 '05 #1
1 7360
"Newsgroup Reader" <no******@newsg roup-reader.com> wrote in message news:8a******** *************** *********@4ax.c om...
I'm trying to create a chat program, however I find it most of the
time these days clients use HTML or some sort of markup language to
render text on the screen. My question is how would I render HTML
without using MSHTML/IE?


If you search http://www.gotdotnet.com, the samples that is, you will find
one called "RichTextBo x that displays XHTML" You can use this to
convert HTML to RTF (which is what it does). The HTML has to be
well-formed XHTML, so you might also need Chris Lovett's SgmlReader
on the same site. Or you could use a version of Tidy.

The other question is, why not use mshtml? See:

http://www.itwriting.com/htmleditor/index.php

Tim


Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2445
by: Sunny | last post by:
Hi all, I have to get a HTML content of a given URL, to inspect links and images and to change something in there, and to save the result. I have done it already with: System.Net.WebClient source = new System.Net.WebClient(); StreamReader mr = null; try
4
2429
by: Jay | last post by:
Hi all, May i know if there is any way by which we can render a given HTML inside .NET Windows Forms? We had the Web Browser controls in Visual Studio 6. Is there a follow-up of that in VS.NET? Most recently, HTML rendered dialog boxes seemms to be in vogue. Can anyone please help?
2
1203
by: Cobus Lombard | last post by:
Hi all I need to create an ASP.NET control that will allow me to do an HttpRequest, parse the HTML and then render it in a thumbnail (sorta like a preview of a site without browsing to it). Managed code would be ideal, but after struggling to find help on doing this in C#, I'm starting to doubt whether this can be done without the WebBrowser Control or mshtml.dll.
5
2644
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever. The form can then be deployed to their intranet. The form designer is somewhat WYSIWYG but it contains a heap of 'edit', 'delete' and reordering buttons that are not seen when the form is acutally being used. I would love to have a preview...
0
1478
by: devanoy | last post by:
I am trying to print an existing HTML File to PDF in VB.NET programmatically. I have only had success with setting the default printer to Acrobat Distiller and using this code. Dim MSHTML As SHDocVw.InternetExplorer MSHTML = New SHDocVw.InternetExplorer() MSHTML.Navigate("c:\html.htm) MSHTML.Visible = False
10
29493
by: Curtis | last post by:
Does anyone have any good examples of parsing WebPages in VB.Net. My application needs to get information from certain HTML tables and I haven't been able to find a good way to approach the problem. I have researched RegularExpressions but have found it to be rather complicated for what I am attempting to accomplish. I was hoping that there would be some type of utility that would allow me to parse through the webpage in a tree like...
3
10107
by: ramesh | last post by:
Hi all, I am facing a problem with the rendering of html into a windows application (C# .NET). I am trying with two possible approaches: 1. Use a control that directly renders the html into windows form, but it should not be dependent on IE or mshtml. I didn't get such kind of control so far. Can any one help on this? 2. Use a third party Html to Rtf converter and render the rtf in
0
1595
by: micmit | last post by:
I wanted to avoid any HTML file creation , so initial HTML was formed as a string and assigned to DocumentText. After that the aim was to manipulate with html using DOM . It turned out when dynamically adding rows to table ctable = (mshtml.HTMLTableClass)htable.DomElement; foreach (T row in table) { crow = (mshtml.HTMLTableRowClass)ctable.insertRow(currow++); crow.id = rowId + "_" +...
3
2438
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a couple of the Firefox is munging up. So, on my information page there is a gridview in the content section of the page. The masterpage contains searching capabilities for the gridview. The masterpage has controls contained in a panel control,...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.