General discussion

Locked

Clipboard Save Dialog Box

By heersthm ·
The VB program I have been working with uses Windows '95 (No Choice). The program performs a large number of graphs from which an average is generated. To alleviate memory problems, a portion of the program is dumped and restarted. When this is done, a dialog box appears asking if I wish to save the contents of the large clipboard. Any way to shut off this dialog box permanently?

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Clipboard Save Dialog Box

by DKlippert In reply to Clipboard Save Dialog Box

Try one of these:
Clipboard.clear
Application.CutCopyMode = False
----------------------
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function APIEmptyClipboard Lib "user32" _
Alias "EmptyClipboard" () As Long
Private Declare Function OpenClipboard Lib "user32" _
(ByVal hwnd As Long) As Long
Private Declare Function GetActiveWindow Lib "user32" () As Long

Public Function EmptyClipboard() As Boolean
Dim hwnd As Long
Dim hClip As Long
hwnd = GetActiveWindow()
Call OpenClipboard(hwnd)
hClip = APIEmptyClipboard()
Call CloseClipboard
EmptyClipboard = (hClip <> 0)
End Function
--------------------

Collapse -

Clipboard Save Dialog Box

by heersthm In reply to Clipboard Save Dialog Box

That will perfectly do the trick. Thank you very much.

Collapse -

Clipboard Save Dialog Box

by heersthm In reply to Clipboard Save Dialog Box

This question was closed by the author

Back to Windows Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums