Try this for the on Exit command of the Text Box:
If Len(Me.TextBox) <> 12 Then
MsgBox "The value must be 12 characters long"
Me.TextBox.SetFocus
Exit Sub
ElseIf IsNumeric(Left(4, Me.TextBox)) Then
MsgBox "The first 4 characters must be letters"...
Hi,
I'm having a similar prolem to this, i need to close IE, with Word embeded into it. I am using the command: WM_CLOSE with the PostMessage command, but the trouble is that it will ask me if i want to save any changes that have been made to the document, which i need to stop.
Is there a way...
Thanks for the reply. I think i understand how to set the System-Wide hook, but you could you clarify what it is i have to do to write a DLL, and how to do it?
I have VB5 which i know i can use, but i have no idea how to write it.
Thanks
muzz
Thanks for the reply, the first bit of code doesn't work i'm afraid, but i looked at the link in your second post, and i used this code:
Declare Function GetWindowThreadProcessId Lib "user32" _
(ByVal hwnd As Long, lpdwProcessId As Long) As Long
Declare Function OpenProcess Lib...
Yeah, i get this message again:
Run-Time Error: '4605':
This method or property is not available becuase this docuemnt is in another application
Can anybody tell me how i would create a DLL file to Hook into Windows?
thanks
muzz
Can anybody help at all? So far i have the following code, but i need to create a DLL file to get the reference for the System WIde Hook.
Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" _
(ByVal lpLibFileName As String) As Long...
Have a look at this http://www.dimastr.com/redemption/ it will allow you to use Outlook to send e-mails, and it even goes round the new Security issues in Outlook.
Thanks for the idea, but unfortunatly it doesn;t work. I get this error:
Run-Time Error: '4605':
This method or property is not available becuase this docuemnt is in another application
That is the same error i get for the Application.Quit SaveChanges:=False (But not the...
I have a Word Document on a website that is opened up through IE, that is to say that you have all the standard functions of Word, but within IE.
The user can then modify the document, but they need to save it back up to the FTP site that it came from. We don't want to give out the FTP User...
Try this code for getting the code to Wait, it's just a timer that waite for 5 seconds, then carrys on the code.
Private Sub Wait_Click()
Dim tTarget As Date
tTarget = Timer + 5
Do Until Timer > tTarget
Loop
MsgBox "5 Seconds up"
End Sub
Can any one give me any information on "Sub-classing" and "Hooking," and how to use them at all?
Any help will be appreciated.
Thanks
muzz
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.