I think I answered your previous post about this issue, here[^]. Please let me know if that does not address your question completely. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
That would be great - or post a link and will fire up the cable modem!! Many thanks "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
nadroj_@hotmail.com u dont have to send the whole thing. im saying just post afew parts here, like the initialization of it, and afew other areas of implementation. did u check that link and upgrade? ------------------------ Jordan. III
Right on, Nick. :cool: What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
VS.NET generates an Interop.VBIDE.dll -- but which DLL does it reference and where is it located? What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
Hi Michael. There are several articles on CodeProject that could help you. Do an article search on "embedded resource". Here's a link to one article[^] that may be useful.
One of two ways: add a reference to the Outlook libraries to your project or use the SmtpMail class. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
matthew kelly wrote:
Public Function HandleOfCurrentWindow()
Dim WindowHandle As Integer
Dim p As Process
p = Process.GetCurrentProcess
WindowHandle = Process.GetCurrentProcess.Handle.ToInt32
'get handle of current window
'return handle
Return WindowHandle
End Function
Well, first of all, your not getting the Window handle of the CurrentProcess. Your actually returning the handle to the Process itself, not it's Window. You have to use the MainWindowHandle propery of the process:
Dim WindowHandle as IntPtr
p = Process.GetCurrentProcess
WindowHandle = Process.GetCurrentProcess.MainWindowHandle()
Now, after you get that, you can't use it in .NET to get the parameters of the window you want. .NET doesn't expose such functionality. But! You can use that window handle to get the parameters using the Win32 API. But! Some of the values you get back will probably surprise you! Send me an email address to send you the sample I wrote. It's a little too big to post here! All you have to do is click on other windows, like the VS IDE to see some interesting Normal Position values. Try it with an IE window too. RageInTheMachine9532