473,404 Members | 2,195 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,404 software developers and data experts.

DHTML editor with AxWebBrowser

Hi all,

I try to make a DHTML editor in C#. I arrive to modify a web page. Now
I want to add picture but i don't arrive to find good documentation or
sample on the web.

Here is my source code :
private void frmEdit_Load(object sender, System.EventArgs e)
{
object missing = System.Reflection.Missing.Value;
object path = Directory.GetCurrentDirectory() + "\\test.htm";
mshtml.HTMLDocumentClass doc;
this.axWebBrowser1.Navigate2(ref path, ref missing, ref missing, ref
missing, ref missing);
doc = (mshtml.HTMLDocumentClass)this.axWebBrowser1.Docum ent;
doc.designMode = "On";
}

I want to add a button to insert an image where the cursor is.

Can you help me please ?

TIA

D

Jun 28 '06 #1
2 1736
You can use the Image control:
http://msdn2.microsoft.com/en-us/lib...77(d=ide).aspx

chanmm

<da**@caramail.com> wrote in message
news:11*********************@x69g2000cwx.googlegro ups.com...
Hi all,

I try to make a DHTML editor in C#. I arrive to modify a web page. Now
I want to add picture but i don't arrive to find good documentation or
sample on the web.

Here is my source code :
private void frmEdit_Load(object sender, System.EventArgs e)
{
object missing = System.Reflection.Missing.Value;
object path = Directory.GetCurrentDirectory() + "\\test.htm";
mshtml.HTMLDocumentClass doc;
this.axWebBrowser1.Navigate2(ref path, ref missing, ref missing, ref
missing, ref missing);
doc = (mshtml.HTMLDocumentClass)this.axWebBrowser1.Docum ent;
doc.designMode = "On";
}

I want to add a button to insert an image where the cursor is.

Can you help me please ?

TIA

D

Jun 28 '06 #2
Thanks, but I use a winform. So the image control dosn't work.

chanmm a écrit :
You can use the Image control:
http://msdn2.microsoft.com/en-us/lib...77(d=ide).aspx

chanmm

<da**@caramail.com> wrote in message
news:11*********************@x69g2000cwx.googlegro ups.com...
Hi all,

I try to make a DHTML editor in C#. I arrive to modify a web page. Now
I want to add picture but i don't arrive to find good documentation or
sample on the web.

Here is my source code :
private void frmEdit_Load(object sender, System.EventArgs e)
{
object missing = System.Reflection.Missing.Value;
object path = Directory.GetCurrentDirectory() + "\\test.htm";
mshtml.HTMLDocumentClass doc;
this.axWebBrowser1.Navigate2(ref path, ref missing, ref missing, ref
missing, ref missing);
doc = (mshtml.HTMLDocumentClass)this.axWebBrowser1.Docum ent;
doc.designMode = "On";
}

I want to add a button to insert an image where the cursor is.

Can you help me please ?

TIA

D


Jun 28 '06 #3

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

Similar topics

0
by: Jose Ricardos | last post by:
I'm creating a web site where I want my users to be able to edit articles using a WYSIWYG editor on the web page itself. Ideally they should be able to use headings, bold, upload images and...
4
by: TF | last post by:
hi, i am using AxWebBrowser control in my C# dot.net windows application. i want to display a web page in the browser that needs some data sent to it through HTML Form 'POST' method. I saw a...
4
by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem...
0
by: Matthias Kwiedor | last post by:
I have a aplication which hosts an axWebbrowser. This activex component needs about 10 to 15 mb of memory. Because i have a option to move the aplication to tray icon and do some timer work i...
3
by: Clint MacDonald | last post by:
I have used the AxWebBrowser in a Visual Basic Project... I found that both Framework 1.0 and 1.1 had to be installed for it to work properly. I now have found that in Studio 2003, that the...
7
by: Mike | last post by:
Hello, I am developing a simple web editor to enable my users to update their websites and add simple formatting to the text. The page content is recovered from a SQL Server database and...
6
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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.