473,804 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1896
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\system 32\shdocvw.dll

AxImp is a utility contained in the .NET SDK, and would be installed
in "C:\Program Files\Microsoft .NET\SDK\v1.1\B in" (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\system 32\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)i nova.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
1886
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: http://users.tpg.com.au/karl6740/css/multi-mode_2.html
30
3006
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 say it, IE. Like, for example, non-selection of a font-face for one style element, even though it is selected okay for another element and the colour, decoration and size are all rendered correctly!
0
1231
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 was thrown from inside the windows form dll. I've printed the stack trace as it come out. This is strange what could possibly cause that? This is really bizzare I am at lost trying to figure what was happening here. Any idea anyone?
4
4592
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. How would i go about doing this?
1
3229
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 render, and its clicked event will be triggered properly. Unfortunately I do not have alot of control over where the button shows up.
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...
3
344
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?
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
12
2884
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 get at them). As an alternative to integrating an OCR engine, and since I know the fonts and sizes used to write on the app's windows, I reasoned that I could base a simple text recognition module on the capability to drive MSWindows text...
0
9715
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
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,...
1
10354
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
9175
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
7642
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
5535
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...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
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.