Solved

HTML WYSIWYG editor for c# desktop application

Posted on 2003-11-18
15
5,530 Views
Last Modified: 2013-12-16
I need to create an html wysiwyg editor in my windows form application with drag-drop features. If i use web-browser component to display the html page , user wont be able to interact with the controls in the page. Any suggestions ,how to go about???

Thanks in advance....
Sree
0
Comment
Question by:msreekm
  • 8
  • 4
  • 2
  • +1
15 Comments
 
LVL 1

Expert Comment

by:AJMartin
ID: 9777311
Consider over-riding the drag-drop events? That way the user will still be able to click links on the page.

I hope that helps!
0
 
LVL 6

Expert Comment

by:purpleblob
ID: 9778222
I believe the web browser control which comes as part of IE can be switched to editor mode, this may get you a long way along in your goal.

Check out http://www.itwriting.com/htmleditor/index.php this may be of interest
0
 
LVL 4

Author Comment

by:msreekm
ID: 9784684
thanks ill get back to u soon ....
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 4

Author Comment

by:msreekm
ID: 9784690
            Microsoft.Mshtml.dll Primary Interop Assembly looks too large for this application... (7820 kb) ,really not sure if this will work...  because this application is supposed to be downloadable for users thru internet.

 
0
 
LVL 6

Expert Comment

by:purpleblob
ID: 9785429
There are ways of working with the controls without using the interop assembly - you could hand code the interfaces that you intend to use, but not sure how much work this would require - I wonder if you could uses a tool such as Lutz Roeder's Reflector to decompile the interop and copy and paste the interfaces you require.

Otherwise you'll going to have to write an HTML editor by hand, obviously with the browser control you'll have something which outputs as per IE.
0
 
LVL 4

Author Comment

by:msreekm
ID: 9785966
the HTMLEDIT project doesnt open in vs.net earlier version, I guess it was done in vs.net 2003, which i donot have , how to proceed???
0
 
LVL 4

Author Comment

by:msreekm
ID: 9785970
the HTMLEDITOR contorl project doesnt open in vs.net earlier version, I guess it was done in vs.net 2003, which i donot have , how to proceed???
0
 
LVL 6

Expert Comment

by:purpleblob
ID: 9786017
Check out http://www.eggheadcafe.com/articles/20030425.asp there's a util here (if I recall) which can convert 2003 to 2002 projects
0
 
LVL 4

Author Comment

by:msreekm
ID: 9786617
that itself was made in 2003 , how will i use tht?
error message-
c:\win.......framwork\v1.1.4322  mwscorwks.dll not found???
0
 
LVL 4

Author Comment

by:msreekm
ID: 9786655
I tried creating new solution and project in  the earlier studio version  and then added all files to it . created a win form and user contrl project and added resp files.. now iam not able tofigure out what references are made in usercontrol and win form project. i get lot of errors while compiling like.

C:\rediffHtmlEdit\HtmlEditorControl\HtmlEditorControl.cs(18): The type or namespace name 'mshtml' could not be found (are you missing a using directive or an assembly reference?)

C:\rediffHtmlEdit\HtmlEditorControl\HtmlEditorControl.cs(1746): The type or namespace name 'AxSHDocVw' could not be found (are you missing a using directive or an assembly reference?)


how do i find out what references should i make?
0
 
LVL 4

Author Comment

by:msreekm
ID: 9786722
Sorry I didnt specify that iam not using the control you said...I got it from ...
http://windowsforms.net/articles/htmleditor.aspx
0
 
LVL 6

Accepted Solution

by:
purpleblob earned 70 total points
ID: 9786767
With regards your previous to last comment, sorry I wasn't aware this utility was a 2003 build.

Anyway in answer to your last points.

Simply go to the references section of your solution, it will probably highlight mshtml and AxShDocView as missing, delete them then right mouse click and select Add Reference...

Now in the COM tab locate Microsoft HTML Object library - this will give the mshtml reference and press select, now locate (from the same tab) Microsoft Internet Controls and select, then press OK. This should supply the interops you require.
0
 
LVL 4

Author Comment

by:msreekm
ID: 9795195
thnks i fixed it with a conversion tool i obtained from the belwo link
which apparently microsoft support team gave me.

here is the mail to share with you guys ...

------------------------------------------------------------------

the issue you are having is the contents of the forms/controls associated resx files. If one open the Html Editor Control resx file you will see the following entry:
 
editorWebBrowser.BackgroundImage
System.Resources.ResXNullRef, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 
For VS2002 the version should be: 1.0.3300.
There is a program someone wrote at http://www.codeproject.com/macro/vsconvert.asp?print=true which does the conversion.
 
The steps listed are
In SLN files, the 8.0 must be replaced with 7.0.
In vcproj files (and only vcproj), the 7.10 part must be replaced by 7.0.
In VB.NET or C# project files, 7.10.xxxx is replaced with 7.0.9466, where xxxx is the build number of VS.NET 7.1
Also in VB.NET and C# projects, the schema version 2.0 should be replaced with 1.0.
In RESX files, the types declared are 1.0.5000 and must be replaced with 1.0.3300.
Finally, in RESX files (binary streams), the base-64 encoded part that describes the version of the stream must change from LjAuNTAw to LjAuMzMw (basically base-64-encoded versions of 1.0.5000 and 1.0.3300 respectively)
 
Hopefully this helps.

Carl Nolan
Senior Consultant
US National Services


------------------------------------------------------------------


now eerything is working fine after conversion.

I want to deploy this application in a web server , to be downloaded for the users from a web page. now the entire application compiles to around 1mb with all dlls. How do i package this with the runtime so that all users who doesnt have clr installed should be able to install it and run from their desktops. (something like IMs (MSN,YAHOO) . setup should automatically detect the runtime presence. now will the inclusion of runtime  increase the size of application considerably?

thanks for all answers. I will release the points after this ...
0
 

Expert Comment

by:KevinSean206
ID: 10005593
There is a workspace on GotDotNet.com that deals with this issue by modifying the boot-strapper for the packaged vs.net installer to automatically detect and download (if neccessary) the .Net framework as opposed to the default behavior of the installer which directs the user to the proper URL to download the framework themselves. To find it, look through the workspace directory on gotdotnet.com

Kevin.
0
 

Expert Comment

by:KevinSean206
ID: 10005594
There is a workspace on GotDotNet.com that deals with this issue by modifying the boot-strapper for the packaged vs.net installer to automatically detect and download (if neccessary) the .Net framework as opposed to the default behavior of the installer which directs the user to the proper URL to download the framework themselves. To find it, look through the workspace directory on gotdotnet.com

Kevin.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PrintingFoundIt(Almost!(Damn!)) 1 30
MediaHelp 4 26
Switching Visual Studio 2015 to normal debug display 3 37
Where is this file? 3 25
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question