Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
Generalmappoint 2002 com add-in Pin
Niko Tanghe6-May-03 2:29
Niko Tanghe6-May-03 2:29 
GeneralRe: mappoint 2002 com add-in Pin
Stephane Rodriguez.6-May-03 6:53
Stephane Rodriguez.6-May-03 6:53 
GeneralRe: mappoint 2002 com add-in Pin
Niko Tanghe6-May-03 23:13
Niko Tanghe6-May-03 23:13 
GeneralKEYEVEN Pin
maitre cesar6-May-03 0:01
maitre cesar6-May-03 0:01 
GeneralRe: KEYEVEN Pin
Stephane Rodriguez.6-May-03 0:32
Stephane Rodriguez.6-May-03 0:32 
Generaluser-defined controls Pin
simwiz5-May-03 22:36
simwiz5-May-03 22:36 
QuestionHow to creat a free IHTMLDocument interface? Pin
benzite5-May-03 21:32
benzite5-May-03 21:32 
AnswerRe: How to creat a free IHTMLDocument interface? Pin
Stephane Rodriguez.5-May-03 22:47
Stephane Rodriguez.5-May-03 22:47 
It's pretty much unnatural, but here it goes : Wink | ;)
using mshtml; // Microsoft.mshtml PIA
using System.Runtime.InteropServices;

// import COM interface used for initialization
[  ComImport, Guid("7FD52380-4E07-101B-AE2D-08002B2EC713"),
  InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IPersistStreamInit
{
  IntPtr GetClassID();
  void IsDirty();
  void Load(IntPtr pStream);
  void Save(IntPtr pStream, bool fClearDirty);
  long GetSizeMax();
  void InitNew();
}

// somewhere in your code :
{
  mshtml.HTMLDocumentClass doc = new mshtml.HTMLDocumentClass();

  IPersistStreamInit pS = (IPersistStreamInit) doc;
  pS.InitNew();
			
  doc.createElement("<a href='http://www.codeproject.com'>link</a>");
  MessageBox.Show ("nb elements = " + doc.all.length);

  ...
}

GeneralRe: How to creat a free IHTMLDocument interface? Pin
benzite6-May-03 0:45
benzite6-May-03 0:45 
GeneralRe: How to creat a free IHTMLDocument interface? Pin
benzite6-May-03 18:03
benzite6-May-03 18:03 
GeneralRe: How to creat a free IHTMLDocument interface? Pin
Stephane Rodriguez.7-May-03 4:39
Stephane Rodriguez.7-May-03 4:39 
GeneralAccess components on modal form from mainform Pin
flyingv5-May-03 19:24
flyingv5-May-03 19:24 
GeneralRe: Access components on modal form from mainform Pin
apferreira5-May-03 22:40
apferreira5-May-03 22:40 
GeneralImages in MainMenu or Popup menu Pin
flyingv5-May-03 18:56
flyingv5-May-03 18:56 
GeneralRe: Images in MainMenu or Popup menu Pin
Kant6-May-03 16:41
Kant6-May-03 16:41 
QuestionHow to get Calling exe resources in a DLL Pin
Ranjan Banerji5-May-03 11:27
Ranjan Banerji5-May-03 11:27 
AnswerRe: How to get Calling exe resources in a DLL Pin
Ranjan Banerji5-May-03 13:53
Ranjan Banerji5-May-03 13:53 
GeneralClearing checked items in a CheckedListBox Pin
Mark Kimball5-May-03 10:59
Mark Kimball5-May-03 10:59 
GeneralRe: Clearing checked items in a CheckedListBox Pin
Kant6-May-03 8:54
Kant6-May-03 8:54 
GeneralRe: Clearing checked items in a CheckedListBox Pin
Mark Kimball6-May-03 9:36
Mark Kimball6-May-03 9:36 
GeneralCollection Sort Performance Pin
Mark Sanders5-May-03 9:30
Mark Sanders5-May-03 9:30 
GeneralRe: Collection Sort Performance Pin
Daniel Turini5-May-03 9:37
Daniel Turini5-May-03 9:37 
GeneralRe: Collection Sort Performance Pin
Mark Sanders5-May-03 9:40
Mark Sanders5-May-03 9:40 
GeneralRe: Collection Sort Performance Pin
James T. Johnson5-May-03 9:43
James T. Johnson5-May-03 9:43 
GeneralRe: Collection Sort Performance Pin
leppie5-May-03 15:13
leppie5-May-03 15:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.