Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: ListView and Column Margin :: C# Pin
valikac4-May-04 3:48
valikac4-May-04 3:48 
GeneralIButtonControl Pin
K4reem3-May-04 10:57
K4reem3-May-04 10:57 
GeneralRe: IButtonControl Pin
leppie3-May-04 11:01
leppie3-May-04 11:01 
GeneralRe: IButtonControl Pin
K4reem4-May-04 3:06
K4reem4-May-04 3:06 
GeneralRe: IButtonControl Pin
Heath Stewart4-May-04 3:28
protectorHeath Stewart4-May-04 3:28 
GeneralRe: IButtonControl Pin
leppie4-May-04 6:52
leppie4-May-04 6:52 
GeneralUsing Viseme from sapi 5.1 Pin
pjaol3-May-04 10:51
pjaol3-May-04 10:51 
GeneralAdding HTML to the OE NewMessage Window Pin
ManjithMadhusudanan3-May-04 10:44
sussManjithMadhusudanan3-May-04 10:44 
Hi,

I need to add soem custome HTML text in the New Message window of OutlookExpress.
I used the ObjectFromLresult and the IHTMLDocument for getting the HTML of that part whose class is Internet_Explorer Server.I wrote a function which will take the handle of the windows & returns IHTMLDocument.It is as follows

Public Function IEDOMFromhWnd(ByVal hWnd As Integer) As IHTMLDocument
Dim IID_IHTMLDocument As System.Guid = New System.Guid("626FC520-A41E-11CF-731-00A0C9082637")
Dim lRes As Int32
Dim lMsg As Int32
Dim hr As Int32
Const SMTO_ABORTIFHUNG As Int32 = &H2
If Not hWnd.Equals(0) Then
If Not hWnd.Equals(0) Then
' Register the message
lMsg = RegisterWindowMessage("WM_HTML_GETOBJECT")
' Get the object
Call SendMessageTimeout(hWnd, lMsg, 0, 0, SMTO_ABORTIFHUNG, 1000, lRes)

If lRes Then

' Get the object from lRes
hr = ObjectFromLresult(lRes, IID_IHTMLDocument, 0, IEDOMFromhWnd)

If hr Then Throw New COMException(hr)
End If
End If
End If
End Function

But the problem is that I'm not getting the HTML Body even I used the Script property of IHTMLDocument. In the interface variable its showing <undefined value="">. Then in the Script property call Error triggers as Object not reference to an instance of an object.

Please Help me
Its Urgent
Manjith
GeneralCopy Portion of Bitmap Pin
Wackatronic3-May-04 9:50
Wackatronic3-May-04 9:50 
GeneralRe: Copy Portion of Bitmap Pin
Heath Stewart3-May-04 10:36
protectorHeath Stewart3-May-04 10:36 
GeneralRe: Copy Portion of Bitmap Pin
Colin Angus Mackay3-May-04 12:11
Colin Angus Mackay3-May-04 12:11 
Generalload crpe32.dll failed Pin
econnor3-May-04 9:40
econnor3-May-04 9:40 
GeneralRe: load crpe32.dll failed Pin
Heath Stewart3-May-04 10:35
protectorHeath Stewart3-May-04 10:35 
GeneralRe: load crpe32.dll failed Pin
leppie3-May-04 10:59
leppie3-May-04 10:59 
GeneralRe: How Do I Make a program to only execute once per session Pin
Dave Kreskowiak3-May-04 9:25
mveDave Kreskowiak3-May-04 9:25 
GeneralRe: How Do I Make a program to only execute once per session Pin
Dave Kreskowiak3-May-04 9:48
mveDave Kreskowiak3-May-04 9:48 
Generaldivil.co.uk's Document Manager. Pin
Marlun3-May-04 8:47
Marlun3-May-04 8:47 
GeneralRe: divil.co.uk's Document Manager. Pin
leppie3-May-04 11:15
leppie3-May-04 11:15 
GeneralRe: divil.co.uk's Document Manager. Pin
Marlun3-May-04 13:44
Marlun3-May-04 13:44 
Generalsp_helpfile Execute Pin
betterc3-May-04 8:45
betterc3-May-04 8:45 
GeneralRe: sp_helpfile Execute Pin
leppie3-May-04 8:57
leppie3-May-04 8:57 
GeneralRe: sp_helpfile Execute Pin
betterc3-May-04 9:30
betterc3-May-04 9:30 
GeneralRe: sp_helpfile Execute Pin
Heath Stewart3-May-04 10:10
protectorHeath Stewart3-May-04 10:10 
GeneralRe: sp_helpfile Execute Pin
betterc3-May-04 10:50
betterc3-May-04 10:50 
GeneralRe: sp_helpfile Execute Pin
Heath Stewart4-May-04 2:44
protectorHeath Stewart4-May-04 2:44 

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.