• (4 Pages)
  • +
  • « First
  • 2
  • 3
  • 4

Creating a wysiwyg HTML editor in C# Using the MS HTML Object Library

#46 Creative Ginger  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 11-July 12

Posted 22 August 2012 - 09:22 AM

Hi I'm new to C# and I'm following your tutorial (which is great by the way) most of it is pretty clear and easy to understand but when I have come to the end where you show how to put your own text in you gave the coding but I don't know where to put it.

//HERE IS THE WAY TO INSERT YOUR OWN TEXT INTO THE HTML EDITOR:
	 
	 
	       String TEXT = "YOUR TEXT GOES HERE!";
	 
	       IHTMLTxtRange range =
	       doc.selection.createRange() as IHTMLTxtRange;
	       range.pasteHTML(TEXT);
	       range.collapse(false);
	       range.select();


That's the bit I got to, could you please let me know where I put this, really sorry if this is obvious and I've missed the answer. I wanted to figure it out myself but I keep getting errors :bigsmile:
Was This Post Helpful? 0
  • +
  • -

#47 Jerrycurl  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 18-December 10

Posted 15 April 2013 - 11:24 AM

I've got this editor in one of my projects. It works fine on most of the machines it is installed on. However, on one machine, I am unable to type or paste in test. I can select text, and change the color, font, justification, etc... It's like the text area is locked. Anyone have any idea what could be causing that? Thanks.
Was This Post Helpful? 0
  • +
  • -

#48 vic85  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-June 13

Posted 04 June 2013 - 06:50 PM

Hi when I type something the text keep going to the right. How do I control This? please help.
Was This Post Helpful? 0
  • +
  • -

  • (4 Pages)
  • +
  • « First
  • 2
  • 3
  • 4