473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Rendering HTML inside Windows Forms

Jay
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?

Thanks so much in advance,
Jay
Jul 21 '05 #1
3 1866
SFB
Why not launch IE? Isn't one of the new thingies in .NET the ability to
easily launch IE?

"Jay" <ja***********@hotmail.com> wrote in message
news:00****************************@phx.gbl...
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?

Thanks so much in advance,
Jay

Jul 21 '05 #2
>May i know if there is any way by which we can render a
given HTML inside .NET Windows Forms?
Yes, you will need to host the ActiveX based MS IE WebBrowser control
inside your WinForm - works okay, but it's a bit klunky at times....

These are the steps necessary:

1. Use the AxImp utility to create the .Net wrappers for the
ShDocVw.dll:

aximp c:\winnt\system32\shdocvw.dll

AxImp is a utility contained in the .NET SDK, and would be installed
in "C:\Program Files\Microsoft.NET\SDK\v1.1\Bin" (if you've installed
the SDK - if not, install it).

2. Place the two output files (shdocvw.dll and AxShDocVw.DLL) in the
folder where your .Net assemblies are located.

3. You can now add the "Microsoft WebBrowser" as a control to your
toolbox by browsing for the COM component in
c:\winnt\system32\shdocvw.dll
Most recently, HTML rendered dialog boxes seemms to be in
vogue. Can anyone please help?


I myself would *never* use HTML to display a dialog box - use the IE
web control when you need to display a HTML file - but that's about
all I'd do.

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Jul 21 '05 #3
"Jay" <ja***********@hotmail.com> wrote in message
news:00****************************@phx.gbl...
Hi all,

May i know if there is any way by which we can render a
given HTML inside .NET Windows Forms?


You might want to look at the HtmlEditor as an alternative to the webbrowser
control:

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

Tim
Where is Borland going?
http://www.itwriting.com/borlandtop.php
Jul 21 '05 #4

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

Similar topics

2
by: Karl Smith | last post by:
This page: http://users.tpg.com.au/karl6740/css/multi-mode_1.html - uses "CSS1Compat" mode in Opera 7.23 but "BackCompat" mode in MSIE 6 and "QuirksMode" in Mozilla 1.6. Whereas this page:...
30
by: Matt Probert | last post by:
Is it just me (probably) or is Mozilla and the newer Firefox full of CSS rendering bugs? I ask, because some strange effects occur with Mozilla and Firefox which don't happen in Opera and dare I...
0
by: wesley | last post by:
Hi all, I have been getting this frustating problem where my application keep throwing a NullReferenceException, but for the light of me I could not localise the location of the problem since it...
4
by: Brian Basquille | last post by:
Hello all, Quick question! How would i keep a point inside a region? For example, the mouse pointer. You should be able to move the mouse around in this region but not anywhere outside it. ...
1
by: sonic | last post by:
I generate a button link control in following Manner. Button b = new Button(); b.Click = MyEventHandler(...); If i add this button to current control with: this.Controls.Add( b ); it will...
5
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....
3
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...
3
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...
12
by: Boris Borcic | last post by:
Hello, I am trying to use UI Automation to drive an MS Windows app (with pywinauto). I need to scrape the app's window contents and use some form of OCR to get at the texts (pywinauto can't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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,...
0
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...

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.