الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كيف يتم إيقاف زر Printscreen طوال فترة عمل البرنامج

بدأه MATRIXD0TNET في 19 أغسطس 2008 · 6 رد · 1,870 مشاهدة · في Microsoft Visual Basic.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم :

كيف يتم تعطيل زر print screen عن العمل طوال فترة عمل البرنامج بحيث لو ضغط أي شخص على هذا الزر لاتتم عملية طباعة الشاشة في برنامج ال paint ؟؟؟

وشكرااااا

كـلـمـا زاد عـلـمـك لـلـشـئ الـمـجـهـول ..... كـلـمـا زاد جـهـلـك لـلـشـئ الـمـعـلـوم

و كـلـمـا زاد جـهـلـك لـلـشـئ الـمـعـلـوم ..... كـلـمـا زاد شـغـفـك لـعـلـم الـمـجـهـول

الــلـــــــهـــــم عـــلـــمـــنــــــي بـــمـــا يـــنــفــعــنــي وانــفــعــنــي بــمــــا عـــلـــمــتــنـــي

#2

up

كـلـمـا زاد عـلـمـك لـلـشـئ الـمـجـهـول ..... كـلـمـا زاد جـهـلـك لـلـشـئ الـمـعـلـوم

و كـلـمـا زاد جـهـلـك لـلـشـئ الـمـعـلـوم ..... كـلـمـا زاد شـغـفـك لـعـلـم الـمـجـهـول

الــلـــــــهـــــم عـــلـــمـــنــــــي بـــمـــا يـــنــفــعــنــي وانــفــعــنــي بــمــــا عـــلـــمــتــنـــي

#3

I tried so much but i cann't find the solution

the form discovered all keys except the PrintScreen key

#4

تستطيع باستخدام هذا الكود

 My.Computer.Clipboard.Clear()

وممكن تعمل له تايمر

لكن عيوب هذه الطريقة انها تلغي اي شي في الحافضة حتى اذا كان نص

جرب وشوف

ممكن باستخدام دوال معينة (مش عارفها) تختار الزر الذي تم ضغطه فإذا كان Print Screen يتم تنفيذ الكود

انظر الملف المرفق

مع جزيل الشكر

PS.zip

#5

sorry, i tried that method before and doesn't work

and you should assigne it with the press of PrintScreen key not any thing

Also , where you should put it ?? if you put it in Load event of the form it will clear just when the form load only and

if you put it at Activated event of the form it 'll slow the program because it'll functioning all time as long as the program work

what we need is the enum or code of the PrintScreen key

and then you can deal with it as you like by tracing the key events of the form or any control on the form

you mentioned that this method will clear all thcontents of the clipboard , but you can check about the image by the method " clipboard.ContainImage()" and that method returns true if the clipboard contains image and then you can clear it

#6

طيب ياجماعة ... وبعدين !!!

ملهاش حل يعني ولا ايه ؟؟؟؟

كـلـمـا زاد عـلـمـك لـلـشـئ الـمـجـهـول ..... كـلـمـا زاد جـهـلـك لـلـشـئ الـمـعـلـوم

و كـلـمـا زاد جـهـلـك لـلـشـئ الـمـعـلـوم ..... كـلـمـا زاد شـغـفـك لـعـلـم الـمـجـهـول

الــلـــــــهـــــم عـــلـــمـــنــــــي بـــمـــا يـــنــفــعــنــي وانــفــعــنــي بــمــــا عـــلـــمــتــنـــي

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…