My computer (and others around me) locks up if I double click on text to edit it (no error is given- just an hour glass). I can edit the text if I just click and select properties. One fix that we do is to block the drawing, delete the entire drawing and then insert the drawing back in then...
I have an application that opens in VB but when then action is triggered again another instance of the program opens instead of maximizing the first instance. I tried the below but that doesn't work.
hwnd = FindWindow(vbNullString, "program X")
If hwnd <> 0 Then
AppActivate "program X"...
It is VBA. Its part of an operator interface software package. Normally we don't have to go to this level so again pardon my inexperience. There are no app.* that are listed.
johnny
I have an application that opens in VB but when then action is triggered again another instance of the program opens instead of maximizing the first instance. I tried the below but that doesn't work.
hwnd = FindWindow(vbNullString, "program X")
If hwnd <> 0 Then
AppActivate "program X"...
oops forgot the first line
hwnd = FindWindow(vbNullString, "program X")
If hwnd <> 0 Then
AppActivate "program X"
Else
Shell ("c:\Program X.exe")
End If
Everytime I press the active x control to run program.exe file a new window opens instead of placing the original window on top. The below statements don't work.
If hwnd <> 0 Then
AppActivate "program X"
Else
Shell ("c:\Program X.exe")
End If
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.