-
Hi!
Anyone ever noticed when you put something on the clipboard (like paste-ing some code from this forum) and launching VB after that CLEARS the clipboard?
Try putting something on the clipboard. Then launch VB and Paste. There won't be anything (at least at my PC).
I use VB6 SP4 (Visual Studio 6 Pro (LEGAL I might add ;) )
Not that big of a problem, but still...
Let me know...
-
Yep !
Does that on mine too. VB6.0 on Windows 98.
-
This topic has been talked about here before, and unfortunately, it happens to everyone and there doesn't seem to be any thing that can be done about it.
-
<?>
It doesn't happen on my pc at home but it does at work.
Home = 650 K7Chipset 128 Ram
Speed & Mem?
-
No, I think it has nothing to do with Speed & mem...
But I had an idea....
Look at this solution:
- Start a New project in VB6
- Add a module
- Remove the form
- Paste this code:
Code:
Option Explicit
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Public Sub Main()
Dim S As String
S = Clipboard.GetText ' Store Clipboard Contents
Shell "vb6.exe", vbMaximizedFocus ' Launch VB
Sleep Val(Command) ' Wait the specified interval
Clipboard.SetText S ' Restore the clipboard...
End Sub ' Done!
- Compile to an Executable (Say "vbLaunch.exe")
- Put the Compiled exe in the SAME directory as VB6.exe
- Change te properties of the shortcut to VB6 from:
"C:\Program Files\Microsoft Visual Studio\VB98\VB6.EXE" (or your own path)
To :
"C:\Program Files\Microsoft Visual Studio\VB98\VBLaunch.EXE" 5000
Where 5000 is an interval in Milliseconds before the clipboard gets restored. If you have a fast PC try 1000. A slow PC? Try 10,000...
Now put something on your clipboard, Double-Click the shortcut and paste in VB! Tadaaaaa...
Brilliant, ain't it?
Enjoy!
(You can also download it Here)
[Edited by RobIII on 10-02-2000 at 12:50 PM]