473,473 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Preventing print screen

Is there a way of turning off or preventing the print screen function while
my application is running. (VB.NET).

Thanks
Tim
Jul 21 '05 #1
2 1682
Tim,

I haven't done this myself but try these idea's...

1. Use the .NET events KeyDown, KeyUp to see what button has been pressed
and if it is Print Screen (I believe the keycode is 44, but best check) see
if you can find a way of cancelling it - though I'm not sure if you can do it
like this.

2. You can hook into the Windows messages so you can trap the key stroke and
bin it before your form gets it.

You will probably have to do No. 2!

-Ben

"Tim Marsden" wrote:
Is there a way of turning off or preventing the print screen function while
my application is running. (VB.NET).

Thanks
Tim

Jul 21 '05 #2
Thanks

I have discovered the SetWindowsHookEx API to monitor for the keypress,
will give it a go.

Tim

"Ben Hinton" <Be*******@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
Tim,

I haven't done this myself but try these idea's...

1. Use the .NET events KeyDown, KeyUp to see what button has been pressed
and if it is Print Screen (I believe the keycode is 44, but best check)
see
if you can find a way of cancelling it - though I'm not sure if you can do
it
like this.

2. You can hook into the Windows messages so you can trap the key stroke
and
bin it before your form gets it.

You will probably have to do No. 2!

-Ben

"Tim Marsden" wrote:
Is there a way of turning off or preventing the print screen function
while
my application is running. (VB.NET).

Thanks
Tim

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html ...
18
by: Tron Thomas | last post by:
Given the following information about memory management in C++: ----- The c-runtime dynamic memory manager (and most other commercial memory managers) has issues with fragmentation similar to a...
2
by: Tim Marsden | last post by:
Is there a way of turning off or preventing the print screen function while my application is running. (VB.NET). Thanks Tim
7
by: Rex | last post by:
Hi all, I want to protect the data on my web page ; I want to make it viewing-only. I've already disabled right-click, but can I take it one step further, and disable certain pulldown menus...
20
by: Jukka K. Korpela | last post by:
I recently noticed, once again, how the common implementation of italics can really disturb. I'm referring to the common phenomenon that there is by default too little spacing after italics text,...
4
by: william.oram | last post by:
alt.html pointed me here, so... I have two CSS files for print and screen. In screen.css: ..screen { font-weight:bold; font-size:12px; }
3
by: joexoxox | last post by:
Here is the deal , I'm writing a function that makes the user guess for a number already set by me , the user will enter a single digit number , and if it exists , it's printed in its right position...
8
by: Mark Shroyer | last post by:
I just completed a new design for a personal web site. After finishing the basic CSS stuff and double-checking it in Safari, FF, Opera, et al., I put on my war paint and fired up IE7 to figure out...
10
by: Ed Jay | last post by:
I do not want to load two style sheets for screen and print media. I'm having difficulty grasping the use of the @print statement, or its syntax. Would someone please provide a simple explanation....
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.