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

كود الحاجز الفورى

مغلق
بدأه new.net في 2 يوليو 2005 · 7 رد · 847 مشاهدة · في Microsoft Visual C#.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

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

كود الحاجز الفورة الذى وضعتة فى موضوع سابق

اولا احب اعرفكم ان شكل المياة الى معمول من عمل الاستاذا رغيد الطيب الذى وجدتة فى احد المنتديات

وصراحة من اجمل الشكال التى رايتها للسى شارب

وفكرة الشكل المائى يصور الشاشة عن طريق API ثم يقوم بتقطيع الصورة الى اجزاء وتحريك هذة الاجزاء الى اليمين واليسار

هذا والله اعلم

اما عن كود الحاجز

فانى ساشرحة داخل الكود

والمختصر انة اقوم بعمل الغا الى خاصية ALT+F4

ثم عمل TopMost كل جزء من الثانية

هذا والله اعلم

 
using System; 
using System.Collections; 
using System.ComponentModel; 
using System.Windows.Forms; 


//  programmer hassan nasar
//  hassannasar@hotmail.com
//  programmer C#.net



namespace RgheedScreenWater 
{ 
	/// <summary> 
	/// Summary description for Form1. 
	/// </summary> 
	public class Form1 : System.Windows.Forms.Form 
	{ 
  private System.ComponentModel.IContainer components; 

  public Form1() 
  { 
 	 // 
 	 // Required for Windows Form Designer support 
 	 // 
 	 InitializeComponent(); 

 	 // 
 	 // TODO: Add any constructor code after InitializeComponent call 
 	 // 
  } 

  /// <summary> 
  /// Clean up any resources being used. 
  /// </summary> 
  protected override void Dispose( bool disposing ) 
  { 
 	 if( disposing ) 
 	 { 
    if (components != null) 
    { 
   	 components.Dispose(); 
    } 
 	 } 
 	 base.Dispose( disposing ); 
  } 

  #region Windows Form Designer generated code 
  /// <summary> 
  /// Required method for Designer support - do not modify 
  /// the contents of this method with the code editor. 
  /// </summary> 
  private void InitializeComponent() 
  { 
 	 this.components = new System.ComponentModel.Container();
 	 this.timer1 = new System.Windows.Forms.Timer(this.components);
 	 this.label1 = new System.Windows.Forms.Label();
 	 this.SuspendLayout();
 	 // 
 	 // timer1
 	 // 
 	 this.timer1.Interval = 50;
 	 this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
 	 // 
 	 // label1
 	 // 
 	 this.label1.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(178)));
 	 this.label1.Location = new System.Drawing.Point(224, 248);
 	 this.label1.Name = "label1";
 	 this.label1.Size = new System.Drawing.Size(440, 64);
 	 this.label1.TabIndex = 0;
 	 this.label1.Text = "حاول العبور دون الضغط غلى الماوس";
 	 // 
 	 // Form1
 	 // 
 	 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
 	 this.ClientSize = new System.Drawing.Size(504, 344);
 	 this.Controls.Add(this.label1);
 	 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
 	 this.Name = "Form1";
 	 this.ShowInTaskbar = false;
 	 this.Text = "Form1";
 	 this.TopMost = true;
 	 this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
 	 this.Click += new System.EventHandler(this.Form1_Click);
 	 this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
 	 this.Load += new System.EventHandler(this.Form1_Load);
 	 this.ResumeLayout(false);

  } 
  #endregion 

  private System.Windows.Forms.Label label1;

  private System.Windows.Forms.Timer timer1; 
  

  /// <summary> 
  /// The main entry point for the application. 
  /// </summary> 
  [STAThread] 
  static void Main() 
  { 
 	 Application.Run(new Form1()); 
  } 
  public string code;
  private void Form1_Load(object sender, System.EventArgs e) 
  { 
  //لتشغيل التايمر اول ما الفورم تتحمل 
 	 timer1.Enabled=true; 
  } 

  private void timer1_Tick(object sender, System.EventArgs e) 
  {
 	 // TopMostكل ما عليك وببساطة ان تستدعى خاصية الى الامام (للفورم)  كل جزء من الثانية 

 	 this.TopMost=true;
  }
  private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  {
 	 //ان تلغى خاصية Alt+F4

 	 e.Cancel=true;
  }

  private void Form1_Click(object sender, System.EventArgs e)
  {
 	 Application.Exit();
  }
  
	} 
}

ولا تنسوا اخيكم حسن نصار بالدعاء

الكود الحاجز مرفق

الحاجز.rar

#2

عمل جميل جداُ جزاك الله خيراُ.

#3

مشكور اخى على مرورك الكريم

#4

مشكور والله يا غالى

#5

عفوا بعض الملفات المطلوبة غير موجودة حاليا ,إذا كنت تريد قراءة الموضوع فمن المحتمل قد تم حذفه أو نقله لمنتدى آخر. الرجاء الرجوع للخلف ومعاودة المحاولة

؟؟؟؟؟؟؟؟؟

تم تعديل هذه المشاركة بواسطة صياد القلوب في 26 فبراير 2006 في 19:45

My_Sign.jpg
#6

البرنامج من تانى علشان الحبايب.............

_____________.rar

#7

ألف شكر يا باشا

#8

لا شكر على واجب اخ C#please وشكور على مرورك الكريم

المهم يكون فية افادة للجميع

هذا الموضوع مغلق.

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