CSHARPWINDOWSFORM Telegram 198
بسم الله الرحمن الرحيم


موضوع اليوم هو عن كيف تقوم بعمل برنامج يقوم بالتقاط صورة لشاشة الكمبيوتر

يوجد عدة طرق الأولى باستخدام اختصار PrintScrn الموجود في الكيبور د
والأخرى عنطريق انشاء صورة من نوع Bitmap و استخدام كلاس Graphics

سوف نبدا بشرح الطريقة الأولى


في البداية قمنا بانشاء مشروع يحتوي على 2 فورمات
الفورم الأول يحتوي على زر لالتقاط صورة الشاشة
بعد الضغط على زر التقاط الشاشة ينتقل مباشرة للفورم الثاني والذي يحتوي على أداة pictureBox تقوم بعرض الصورة التي تم تصوريها مع أداة MenuStrip خيار لحفظ الصورة
أداة pictureBox اجعل خاصية محدد الوصول public


نشرح الاكواد

الزر الموجود في الفورم الأول
private void button1_Click(object sender, EventArgs e)
{
this.Opacity = .0;
string PrintSC = "{PrtSc}";

SendKeys.SendWait(PrintSC);
ShowScreenShot f2 = new ShowScreenShot();
f2.pictureBox1.Image = Clipboard.GetImage();
f2.ShowDialog();
this.Opacity = 1.00;
}


زر Save في الفورم الثاني

private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "ملفات الصور |*.jpg; *.png; *.gif";
if (sfd.ShowDialog() == DialogResult.OK)
{
pictureBox1.Image.Save(sfd.FileName);
MessageBox.Show("تم الحفظ بنجاح", "حفظ", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}



tgoop.com/CsharpWindowsForm/198
Create:
Last Update:

بسم الله الرحمن الرحيم


موضوع اليوم هو عن كيف تقوم بعمل برنامج يقوم بالتقاط صورة لشاشة الكمبيوتر

يوجد عدة طرق الأولى باستخدام اختصار PrintScrn الموجود في الكيبور د
والأخرى عنطريق انشاء صورة من نوع Bitmap و استخدام كلاس Graphics

سوف نبدا بشرح الطريقة الأولى


في البداية قمنا بانشاء مشروع يحتوي على 2 فورمات
الفورم الأول يحتوي على زر لالتقاط صورة الشاشة
بعد الضغط على زر التقاط الشاشة ينتقل مباشرة للفورم الثاني والذي يحتوي على أداة pictureBox تقوم بعرض الصورة التي تم تصوريها مع أداة MenuStrip خيار لحفظ الصورة
أداة pictureBox اجعل خاصية محدد الوصول public


نشرح الاكواد

الزر الموجود في الفورم الأول
private void button1_Click(object sender, EventArgs e)
{
this.Opacity = .0;
string PrintSC = "{PrtSc}";

SendKeys.SendWait(PrintSC);
ShowScreenShot f2 = new ShowScreenShot();
f2.pictureBox1.Image = Clipboard.GetImage();
f2.ShowDialog();
this.Opacity = 1.00;
}


زر Save في الفورم الثاني

private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "ملفات الصور |*.jpg; *.png; *.gif";
if (sfd.ShowDialog() == DialogResult.OK)
{
pictureBox1.Image.Save(sfd.FileName);
MessageBox.Show("تم الحفظ بنجاح", "حفظ", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}

BY برمجة تطبيقات الويندوز C# Programming


Share with your friend now:
tgoop.com/CsharpWindowsForm/198

View MORE
Open in Telegram


Telegram News

Date: |

Joined by Telegram's representative in Brazil, Alan Campos, Perekopsky noted the platform was unable to cater to some of the TSE requests due to the company's operational setup. But Perekopsky added that these requests could be studied for future implementation. The SUCK Channel on Telegram, with a message saying some content has been removed by the police. Photo: Telegram screenshot. In 2018, Telegram’s audience reached 200 million people, with 500,000 new users joining the messenger every day. It was launched for iOS on 14 August 2013 and Android on 20 October 2013. During a meeting with the president of the Supreme Electoral Court (TSE) on June 6, Telegram's Vice President Ilya Perekopsky announced the initiatives. According to the executive, Brazil is the first country in the world where Telegram is introducing the features, which could be expanded to other countries facing threats to democracy through the dissemination of false content. Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place.
from us


Telegram برمجة تطبيقات الويندوز C# Programming
FROM American