|
-
May 13th, 2006, 02:59 PM
#1
Thread Starter
Hyperactive Member
[Resolved] is it possible to block Windows functions via VB6
Hi, i need to block the windows2000 function printscreen and copy - past. Is there any API call or something else?
Thanks in advance
Last edited by Bongo; May 14th, 2006 at 03:08 AM.
-
May 13th, 2006, 03:18 PM
#2
Re: is it possible to block Windows functions via VB6
Do you mean Ctrl+C, Ctrl+V?
Why do you would like to block those keys?
-
May 13th, 2006, 03:19 PM
#3
Re: is it possible to block Windows functions via VB6
Block for just inside your app or globally?
If its globally, that doesnt sound like a good idea as it will irritate users when they need to do it in other apps.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 13th, 2006, 03:26 PM
#4
Thread Starter
Hyperactive Member
Re: is it possible to block Windows functions via VB6
it is for an application in the security area - client wants this .....
If it is possible to block Ctr-C - Ctrl-V - PrintScreen only for the app would be ok. But I think I have to do this on a OS level.
-
May 13th, 2006, 03:33 PM
#5
Re: is it possible to block Windows functions via VB6
For the app you can use the KeyDown or KeyPress event of the Form and set the forms KeyPreview property to True. In the event you will clear the clipboard.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 13th, 2006, 03:36 PM
#6
Thread Starter
Hyperactive Member
Re: is it possible to block Windows functions via VB6
@RobDog888:
Many thanks the easy answers are the best one.
I was looking for API or more deeper, but .... (see last sentence)
many thanks
-
May 13th, 2006, 03:37 PM
#7
Re: is it possible to block Windows functions via VB6
The only part that you can not do is if the form is not the active window. In that case you cant do much about it.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 13th, 2006, 04:05 PM
#8
Thread Starter
Hyperactive Member
Re: is it possible to block Windows functions via VB6
s.it there has to be a but .. ok same question again - any sollution if form is not active
-
May 13th, 2006, 07:01 PM
#9
Re: is it possible to block Windows functions via VB6
It really isn't a good idea.
Anyway, you will need to implement low level hooking - take a look at sample below - you should get some idea:
Trapping Special Key Events using Low Level Hooks
-
May 14th, 2006, 03:06 AM
#10
Thread Starter
Hyperactive Member
Re: is it possible to block Windows functions via VB6
@RhinoBull :
Many thankx - I think this is a good example. It will defenitly help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|