HtmlEditor :  Phorum 5 The fastest message board... ever.

This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
The last request, form for inserting img...
Posted by: bricke (217.221.181.---)
Date: Thursday, 08-Feb-2007, 17:07:34

This is my last request, after that i've finished my work!

I've implemented all that i'm searching for but now i want a form to select what image insert on my html.

For example for saving the files there is the command:

this.htmlEditor1.SaveAs("wherever.html");

and this command opens a "form" for select an older file to overwrite or other....
I want a form like that, but for inserting images, a simply way to get the path of the files i'm searching.

For inserting images i use:
mshtml.IHTMLImgElement img = (mshtml.IHTMLImgElement)htmlEditor1.Document.createElement("img");
img.src = "filepath";
mshtml.IHTMLDOMNode nd = (mshtml.IHTMLDOMNode) img;
mshtml.IHTMLDOMNode body = (mshtml.IHTMLDOMNode)htmlEditor1.Document.body;
body.appendChild(nd);



Post Edited (02-08-07 17:09)

Re: The last request, form for inserting img...
Posted by: bricke (217.221.181.---)
Date: Monday, 12-Feb-2007, 13:50:00

Any ideas?
No solution?


Thanks

Re: The last request, form for inserting img...
Posted by: ramida (---.cfr.ncsu.edu)
Date: Monday, 12-Feb-2007, 15:57:58

Hi,

Just add a Button control to your form, name it "buttonBrowseFilepath", with a Text property of "Browse...". Attach this method to the button's click event:

private void buttonBrowseFilepath_Click(object sender, EventArgs e)
{
OpenFileDialog fd=new OpenFileDialog();
fd.Filter="Image files (*.bmp;*.jpg;*.png;*.tiff;*.gif) |*.bmp;*.jpg;*.png;*.tiff;*.gif|All files (*.*)|*.*";
fd.Filename="";
fd.RestoreDirectory=true;

if(fd.ShowDialog()==DialogResult.OK)
{
Uri filepath=new Uri(fd.Filename)
img.src=filepath.AbsoluteUri; //if document not currently saved
//explore the use of MakeRelativeUri() method if document is already saved
}
}

Hope that helps, ramida

Re: The last request, form for inserting img...
Posted by: bricke (217.221.181.---)
Date: Tuesday, 13-Feb-2007, 08:04:10

I've already solve that problem.
Sorry

However my solution is simylar to yours.

Re: The last request, form for inserting img...
Posted by: ramida (---.cfr.ncsu.edu)
Date: Tuesday, 13-Feb-2007, 15:51:03

thank you. :-) ramida

Re: The last request, form for inserting img...
Posted by: jude (82.128.45.---)
Date: Thursday, 09-Apr-2009, 11:29:58

l love to be member ,lm jude/32/not marry. l love meeting peoples,visiting friends in diff places.lm sweet, down to earth love to have fun. a very open minded,easy going.

Re: The last request, form for inserting img...
Posted by: jude (82.128.45.---)
Date: Thursday, 09-Apr-2009, 12:01:15

bricke Wrote:
-------------------------------------------------------
> This is my last request, after that i've finished
> my work!
>
> I've implemented all that i'm searching for but
> now i want a form to select what image insert on
> my html.
>
> For example for saving the files there is the
> command:
>
> this.htmlEditor1.SaveAs("wherever.html");
>
> and this command opens a "form" for select an
> older file to overwrite or other....
> I want a form like that, but for inserting images,
> a simply way to get the path of the files i'm
> searching.
>
> For inserting images i use:
> mshtml.IHTMLImgElement img =
> (mshtml.IHTMLImgElement)htmlEditor1.Document.creat
> eElement("img");
> img.src = "filepath";
> mshtml.IHTMLDOMNode nd =
> (mshtml.IHTMLDOMNode) img;
> mshtml.IHTMLDOMNode body =
> (mshtml.IHTMLDOMNode)htmlEditor1.Document.body;
> body.appendChild(nd);
>
>
>
> Post Edited (02-08-07 17:09)

Re: The last request, form for inserting img...
Posted by: jude (82.128.45.---)
Date: Thursday, 09-Apr-2009, 12:12:33

bricke Wrote:
-------------------------------------------------------
> This is my last request, after that i've finished
> my work!
>
> I've implemented all that i'm searching for but
> now i want a form to select what image insert on
> my html.
>
> For example for saving the files there is the
> command:
>
> this.htmlEditor1.SaveAs("wherever.html");
>
> and this command opens a "form" for select an
> older file to overwrite or other....
> I want a form like that, but for inserting images,
> a simply way to get the path of the files i'm
> searching.
>
> For inserting images i use:
> mshtml.IHTMLImgElement img =
> (mshtml.IHTMLImgElement)htmlEditor1.Document.creat
> eElement("img");
> img.src = "filepath";
> mshtml.IHTMLDOMNode nd =
> (mshtml.IHTMLDOMNode) img;
> mshtml.IHTMLDOMNode body =
> (mshtml.IHTMLDOMNode)htmlEditor1.Document.body;
> body.appendChild(nd);
>
>
>
> Post Edited (02-08-07 17:09)

Re: The last request, form for inserting img...
Posted by: jude (82.128.45.---)
Date: Thursday, 09-Apr-2009, 12:16:43

bricke Wrote:
-------------------------------------------------------
> This is my last request, after that i've finished
> my work!
>
> I've implemented all that i'm searching for but
> now i want a form to select what image insert on
> my html.
>
> For example for saving the files there is the
> command:
>
> this.htmlEditor1.SaveAs("wherever.html");
>
> and this command opens a "form" for select an
> older file to overwrite or other....
> I want a form like that, but for inserting images,
> a simply way to get the path of the files i'm
> searching.
>
> For inserting images i use:
> mshtml.IHTMLImgElement img =
> (mshtml.IHTMLImgElement)htmlEditor1.Document.creat
> eElement("img");
> img.src = "filepath";
> mshtml.IHTMLDOMNode nd =
> (mshtml.IHTMLDOMNode) img;
> mshtml.IHTMLDOMNode body =
> (mshtml.IHTMLDOMNode)htmlEditor1.Document.body;
> body.appendChild(nd);
>
>
>
> Post Edited (02-08-07 17:09)

Re: The last request, form for inserting img...
Posted by: jude (82.128.45.---)
Date: Thursday, 09-Apr-2009, 12:41:10

NO Solution, Thanks.

Re: The last request, form for inserting img...
Posted by: jude (82.128.45.---)
Date: Thursday, 09-Apr-2009, 12:50:54

Thanks

Re: The last request, form for inserting img...
Posted by: YUYU (---.dsl.nesma.net.sa)
Date: Friday, 02-Oct-2009, 01:54:26

<a target="http://www.s-shooq.com/chat/ahle.html" href="http://www.s-shooq.com/chat/ahle.html">
شات الاهلي</a> -
<a target="http://www.s-shooq.com/chat/ahle.html" href="http://www.s-shooq.com/chat/ahle.html">
دردشة الاهلي</a> -
<a target="http://www.s-shooq.com/chat/ahle.html" href="http://www.s-shooq.com/chat/ahle.html">
دردشه الاهلي</a> -
<a target="http://www.s-shooq.com/chat/ahle.html" href="http://www.s-shooq.com/chat/ahle.html">
شات</a> - <a href="http://www.s-shooq.com/chat/ahle.html">شات كتابي</a> - </span><a target="http://www.s-shooq.com" href="http://www.s-shooq.com">شات</a> -
<a target="http://www.s-shooq.com" href="http://www.s-shooq.com">دردشة</a> -
<a target="http://www.s-shooq.com" href="http://www.s-shooq.com">دردشه</a> -
<a target="http://www.s-shooq.com/vb" href="http://www.s-shooq.com/vb">منتدى</a>
- <a target="http://www.s-shooq.com/vb" href="http://www.s-shooq.com/vb">منتديات</a>
- <a target="http://www.s-shooq.com/vb" href="http://www.s-shooq.com/vb">سحايب
شوق</a> - <a target="http://www.s-shooq.com" href="http://www.s-shooq.com">شات
كتابي</a> - <a target="http://www.s-shooq.com" href="http://www.s-shooq.com">
دردشة كتابيه</a> -
<a target="http://www.s-shooq.com" href="http://www.s-shooq.com">دردشه كتابيه</a>
- <a target="http://www.s-shooq.com" href="http://www.s-shooq.com">دردشة كتابية</a>
- <a target="http://www.s-shooq.com" href="http://www.s-shooq.com">دردشه كتابية</a>
- <span lang="en-us">
<a target="http://www.s-shooq.com" href="http://www.s-shooq.com">ahj </a>-&nbsp; </span>
<a target="http://www.s-shooq.com/dir" href="http://www.s-shooq.com/dir">دليل
مواقع</a> -
<a target="http://www.s-shooq.com/dir" href="http://www.s-shooq.com/dir">دليل
المواقع</a> <span lang="en-us">
&nbsp;- </span>
<a target="http://www.s-shooq.com/chat/1.htm" href="http://www.s-shooq.com/chat/1.htm">
شات النصر</a> -
<a target="http://www.s-shooq.com/chat/1.htm" href="http://www.s-shooq.com/chat/1.htm">
دردشة النصر</a> -
<a target="http://www.s-shooq.com/chat/2.htm" href="http://www.s-shooq.com/chat/2.htm">
شات الهلال</a> -<a target="http://www.s-shooq.com/chat/2.htm" href="http://www.s-shooq.com/chat/2.htm">
دردشة الهلال</a> -
<a target="http://www.s-shooq.com/chat/3.htm" href="http://www.s-shooq.com/chat/3.htm">
شات الكويت</a> -
<a target="http://www.s-shooq.com/chat/3.htm" href="http://www.s-shooq.com/chat/3.htm">
دردشة الكويت</a> -
<a target="http://www.s-shooq.com/chat/3.htm" href="http://www.s-shooq.com/chat/3.htm">
شات كويتي</a> -
<a target="http://www.s-shooq.com/chat/8.htm" href="http://www.s-shooq.com/chat/8.htm">
شات عمان</a> -
<a target="http://www.s-shooq.com/chat/8.htm" href="http://www.s-shooq.com/chat/8.htm">
دردشة عمان</a> -
<a target="http://www.s-shooq.com/chat/8.htm" href="http://www.s-shooq.com/chat/8.htm">
شات عماني</a> -
<a target="http://www.s-shooq.com/chat/1.htm" href="http://www.s-shooq.com/chat/1.htm">
شات نصراوي</a> -
<a target="http://www.s-shooq.com/chat/4.htm" href="http://www.s-shooq.com/chat/4.htm">
شات بحريني</a>&nbsp; -
<a target="http://www.s-shooq.com/chat/4.htm" href="http://www.s-shooq.com/chat/4.htm">
دردشة بحرينيه</a> -
<a target="http://www.s-shooq.com/chat/5.htm" href="http://www.s-shooq.com/chat/5.htm">
شات قطري</a> -
<a target="http://www.s-shooq.com/chat/5.htm" href="http://www.s-shooq.com/chat/5.htm">
دردشه قطريه</a> -
<a target="http://www.s-shooq.com/chat/6.htm" href="http://www.s-shooq.com/chat/6.htm">
شات عراقي</a> -
<a target="http://www.s-shooq.com/chat/6.htm" href="http://www.s-shooq.com/chat/6.htm">
دردشة عراقيه</a> -
<a target="http://www.s-shooq.com/chat/6.htm" href="http://www.s-shooq.com/chat/6.htm">
شات العراق</a> -
<a target="http://www.s-shooq.com/chat/4.htm" href="http://www.s-shooq.com/chat/4.htm">
شات البحرين</a> -
<a target="http://www.s-shooq.com/chat/4.htm" href="http://www.s-shooq.com/chat/4.htm">
دردشة البحرين</a> -<a target="http://www.s-shooq.com/chat/5.htm" href="http://www.s-shooq.com/chat/5.htm">
شات قطر</a> -&nbsp;
<a target="http://www.s-shooq.com/chat/5.htm" href="http://www.s-shooq.com/chat/5.htm">
دردشة قطر</a> -
<a target="http://www.s-shooq.com/chat/6.htm" href="http://www.s-shooq.com/chat/6.htm">
دردشة العراق</a> -
<a target="http://www.s-shooq.com/chat/7.htm" href="http://www.s-shooq.com/chat/7.htm">
شات اماراتي</a> -
<a target="http://www.s-shooq.com/chat/7.htm" href="http://www.s-shooq.com/chat/7.htm">
دردشة اماراتيه</a> -
<a target="http://www.s-shooq.com/chat/7.htm" href="http://www.s-shooq.com/chat/7.htm">
شات الامارات</a> -&nbsp;
<a target="http://www.s-shooq.com/chat/7.htm" href="http://www.s-shooq.com/chat/7.htm">
دردشة الامارات</a> -
<a target="http://www.s-shooq.com/chat/9.htm" href="http://www.s-shooq.com/chat/9.htm">
شات سعودي</a> -
<a target="http://www.s-shooq.com/chat/9.htm" href="http://www.s-shooq.com/chat/9.htm">
دردشة سعوديه</a> -
<a target="http://www.s-shooq.com/chat/9.htm" href="http://www.s-shooq.com/chat/9.htm">
شات السعودية</a> -
<a target="http://www.s-shooq.com/chat/9.htm" href="http://www.s-shooq.com/chat/9.htm">
دردشة السعودية</a> -
<a target="http://www.s-shooq.com/chat/yemen.htm" href="http://www.s-shooq.com/chat/yemen.htm">
شات يمني</a> -
<a target="http://www.s-shooq.com/chat/yemen.htm" href="http://www.s-shooq.com/chat/yemen.htm">
دردشة يمنيه</a> -
<a target="http://www.s-shooq.com/chat/yemen.htm" href="http://www.s-shooq.com/chat/yemen.htm">
شات اليمن</a> -
<a target="http://www.s-shooq.com/chat/yemen.htm" href="http://www.s-shooq.com/chat/yemen.htm">
دردشة اليمن</a> -
<a target="http://www.s-shooq.com/chat/10.htm" href="http://www.s-shooq.com/chat/10.htm">
شات الخليج</a> -
<a target="http://www.s-shooq.com/chat/10.htm" href="http://www.s-shooq.com/chat/10.htm">
دردشة الخليج</a> - <a href="http://www.s-shooq.com/chat/10.htm">شات خليجي</a> -
<a target="http://www.s-shooq.com/chat/10.htm" href="http://www.s-shooq.com/chat/10.htm">
دردشة خليجية</a> -
<a target="http://www.s-shooq.com/chat/h1.htm" href="http://www.s-shooq.com/chat/h1.htm">
شات ذب × ذب</a> -<a target="http://www.s-shooq.com/chat/h1.htm" href="http://www.s-shooq.com/chat/h1.htm">
دردشة ذب × ذب</a> -
<a target="http://www.s-shooq.com/dir/site-728.html" href="http://www.s-shooq.com/dir/site-728.html">
شات ذب × ذب</a> -
<a target="http://www.s-shooq.com/dir/site-728.html" href="http://www.s-shooq.com/dir/site-728.html">
دردشة ذب × ذب</a> - <a target="http://www.wdq8.com" href="http://www.wdq8.com">
ود الكويت</a> - <a href="http://www.wdq8.com">شات كويتي</a> -
<a target="http://www.wdq8.com" href="http://www.wdq8.com">دردشة كويتيه</a> -<a target="http://www.wdq8.com" href="http://www.wdq8.com">
دردشه كويتيه</a> - <a target="http://www.wdq8.com" href="http://www.wdq8.com">
دردشة كويتية</a> -<a target="http://www.wdq8.com" href="http://www.wdq8.com">
شات</a> - <a target="http://www.wdq8.com" href="http://www.wdq8.com">دردشة</a> -
<a target="http://www.wdq8.com" href="http://www.wdq8.com">جات كويتي</a>&nbsp;
<span lang="ar-sa">&nbsp;-
<a target="http://www.s-shooq.com" href="http://www.s-shooq.com">شات سحايب شوق</a>
- <a target="http://www.s-shooq.com" href="http://www.s-shooq.com">دردشة سحايب
شوق</a> -<a target="http://www.s-shooq.com/vb" href="http://www.s-shooq.com/vb/">منتدى
سحايب شوق</a> -
<a target="http://www.s-shooq.com/vb" href="http://www.s-shooq.com/vb/">منتديات
سحايب شوق</a></span> - <span lang="ar-sa">
<a target="http://www.s-shooq.com/dir/" href="http://www.s-shooq.com/dir/">دليل
مواقع سحايب شوق</a> -
<a target="http://www.s-shooq.com/dir/" href="http://www.s-shooq.com/dir/">دليل
المواقع سحايب شوق</a> -
<a target="http://www.s-shooq.com" href="http://www.s-shooq.com">شات خليجي</a> -
<a target="http://www.s-shooq.com" href="http://www.s-shooq.com">دردشه خليجيه</a>
- <a target="http://www.s-shooq.com" href="http://www.s-shooq.com">دردشة خليجية</a>
- <a target="http://www.wdq8.com" href="http://www.wdq8.com">شات كتابي</a> -
<a target="http://www.wdq8.com" href="http://www.wdq8.com">دردشة كتابيه</a> -
<a target="http://www.wdq8.com" href="http://www.wdq8.com">دردشة كتابية</a>&nbsp;
- <a target="http://www.s-shooq.com" href="http://www.s-shooq.com">شات سعودي</a>
- <a target="http://www.s-shooq.com" href="http://www.s-shooq.com">دردشة سعودية</a>
- <a target="http://www.wdq8.com" href="http://www.wdq8.com">شات خليجي</a> -<a target="http://www.wdq8.com" href="http://www.wdq8.com">
دردشة خليجية</a></span> - <span lang="ar-sa">
<a target="http://www.s-shooq.com/" href="http://www.s-shooq.com/">شا ت</a> -
<a target="http://www.s-shooq.com/vb" href="http://www.s-shooq.com/vb">منتدى
خليجي</a></span> - <span lang="ar-sa">
<a target="http://www.wdq8.com" href="http://www.wdq8.com">شا ت كويتي</a> -<a target="http://www.wdq8.com" href="http://www.wdq8.com">
شا ت الكويت</a> - <a target="http://www.wdq8.com" href="http://www.wdq8.com">شا
ت</a></span> - <span lang="ar-sa">
<a target="http://www.s-shooq.com/chat/massr.html" href="http://www.s-shooq.com/chat/massr.html">
شات مصري</a> -
<a target="http://www.s-shooq.com/chat/massr.html" href="http://www.s-shooq.com/chat/massr.html">
شات مصر</a> -
<a target="http://www.s-shooq.com/chat/massr.html" href="http://www.s-shooq.com/chat/massr.html">
دردشة مصريه</a> -
<a target="http://www.s-shooq.com/chat/massr.html" href="http://www.s-shooq.com/chat/massr.html">
دردشة مصرية</a> -
<a target="http://www.s-shooq.com/vb/forumdisplay.php?f=71" href="http://www.s-shooq.com/vb/forumdisplay.php?f=71">
رابطة النصر</a> -
<a target="http://www.s-shooq.com/vb/forumdisplay.php?f=71" href="http://www.s-shooq.com/vb/forumdisplay.php?f=71">
رابطة العالمي</a> -
<a target="http://www.s-shooq.com/vb/forumdisplay.php?f=72" href="http://www.s-shooq.com/vb/forumdisplay.php?f=72">
رابطة الهلال</a> -
<a target="http://www.s-shooq.com/vb/forumdisplay.php?f=72" href="http://www.s-shooq.com/vb/forumdisplay.php?f=72">
رابطة الزعيم</a> -
<a target="http://www.s-shooq.com/vb/forumdisplay.php?f=74" href="http://www.s-shooq.com/vb/forumdisplay.php?f=74">
رابطة الاهلي</a> -
<a target="http://www.s-shooq.com/vb/forumdisplay.php?f=73" href="http://www.s-shooq.com/vb/forumdisplay.php?f=73">
رابطة الاتحاد</a> -
<a target="http://www.s-shooq.com/chat/massr.html" href="http://www.s-shooq.com/chat/massr.html">
ام الدنيا</a> -
<a target="http://www.s-shooq.com/chat/massr.html" href="http://www.s-shooq.com/chat/massr.html">
مصر</a></span> - <span lang="ar-sa">
<a target="http://www.s-shooq.com/drdsha/sorea.html" href="http://www.s-shooq.com/drdsha/sorea.html">
شات سوري</a> -
<a target="http://www.s-shooq.com/drdsha/sorea.html" href="http://www.s-shooq.com/drdsha/sorea.html">
دردشة سوريه</a> -
<a target="http://www.s-shooq.com/drdsha/sorea.html" href="http://www.s-shooq.com/drdsha/sorea.html">
دردشة سورية</a> -
<a target="http://www.s-shooq.com/drdsha/sorea.html" href="http://www.s-shooq.com/drdsha/sorea.html">
شات كتابي</a> -
<a target="http://www.s-shooq.com/drdsha/sorea.html" href="http://www.s-shooq.com/drdsha/sorea.html">
درشة كتابية</a> -
<a target="http://www.s-shooq.com" href="http://www.s-shooq.com">سحايب</a>
</span> </p>



Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
pLMGk
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.