Click here to Skip to main content
16,010,553 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: shared memory Pin
ns24-Sep-02 1:29
ns24-Sep-02 1:29 
GeneralRe: shared memory Pin
Throttles25-Sep-02 10:39
Throttles25-Sep-02 10:39 
QuestionHow do I update methods and properties in VBA? Pin
Member 9620-Sep-02 12:26
Member 9620-Sep-02 12:26 
Generalsendmessage not sending in VB dll: Pin
ns20-Sep-02 12:01
ns20-Sep-02 12:01 
GeneralRe: sendmessage not sending in VB dll: Pin
Matt Philmon20-Sep-02 17:34
Matt Philmon20-Sep-02 17:34 
GeneralRe: sendmessage not sending in VB dll: Pin
nss20-Sep-02 23:49
nss20-Sep-02 23:49 
Generalmodal form and timer Pin
ns20-Sep-02 9:40
ns20-Sep-02 9:40 
GeneralRe: modal form and timer Pin
Nick Parker20-Sep-02 19:42
protectorNick Parker20-Sep-02 19:42 
This should work:

Private Declare Function GetActiveWindow Lib "user32" () As Long
Private Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function TextOut Lib "gdi32" Alias "TextOutA" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal lpString As String, ByVal nCount As Long) As Long



Private Sub Command1_Click()
    Dim str
    str = "This should work"
    TextOut GetWindowDC(GetActiveWindow), 50, 50, str, Len(str)
End Sub


HTH

Nick Parker

So like children pointers should be left to grown ups. - Norm Alomond



GeneralWow! It worked!!! Pin
ns21-Sep-02 12:48
ns21-Sep-02 12:48 
Generalpascal Pin
FreJa20-Sep-02 8:55
FreJa20-Sep-02 8:55 
GeneralRe: pascal Pin
Ray Cassick20-Sep-02 10:18
Ray Cassick20-Sep-02 10:18 
Generaltextout wont work! Pin
ns20-Sep-02 7:59
ns20-Sep-02 7:59 
Questionany way to programmatically dismiss a modal form? Pin
ns20-Sep-02 5:45
ns20-Sep-02 5:45 
AnswerRe: any way to programmatically dismiss a modal form? Pin
Nick Parker20-Sep-02 9:07
protectorNick Parker20-Sep-02 9:07 
GeneralRe: any way to programmatically dismiss a modal form? Pin
ns20-Sep-02 9:14
ns20-Sep-02 9:14 
GeneralRe: any way to programmatically dismiss a modal form? Pin
Nick Parker20-Sep-02 9:36
protectorNick Parker20-Sep-02 9:36 
Generalhelp! progressbar wont show! Pin
ns20-Sep-02 4:34
ns20-Sep-02 4:34 
GeneralRe: help! progressbar wont show! Pin
Ray Cassick20-Sep-02 4:40
Ray Cassick20-Sep-02 4:40 
GeneralRe: help! progressbar wont show! Pin
ns20-Sep-02 5:42
ns20-Sep-02 5:42 
GeneralRe: help! progressbar wont show! Pin
Nick Parker20-Sep-02 9:43
protectorNick Parker20-Sep-02 9:43 
GeneralRe: help! progressbar wont show! Pin
dsk24-Sep-02 22:50
dsk24-Sep-02 22:50 
QuestionCatch keydown in Word by VBA? Pin
Elf19-Sep-02 19:32
Elf19-Sep-02 19:32 
QuestionShut down one program from another? Pin
Matt Philmon19-Sep-02 18:02
Matt Philmon19-Sep-02 18:02 
Questionhow to launch form in a vb COM dll Pin
ns19-Sep-02 12:06
ns19-Sep-02 12:06 
AnswerRe: how to launch form in a vb COM dll Pin
Nick Parker19-Sep-02 16:45
protectorNick Parker19-Sep-02 16:45 

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.