السلام عليكم
انا عملت شاشة splash
من الموضوع الموجود في المنتدى بس لما أفتح الملف التنفيذي من مجلد debug
يطلع خطأ
an unhandeled exception ...
thread was being aborted
ايش يعني
فين ممكن تكون المشكلة
السلام عليكم
انا عملت شاشة splash
من الموضوع الموجود في المنتدى بس لما أفتح الملف التنفيذي من مجلد debug
يطلع خطأ
an unhandeled exception ...
thread was being aborted
ايش يعني
فين ممكن تكون المشكلة
السلام عليكم
شكرا على الرد
عرفت المشكلة كانت من جهازي نفسه
بس المشكلة الان<< اخرج من وحده واطيح بالثانية
انه ال splash تظل ظاهرة حتى انقر على الفورما في اي مكان
ومرات تروح بس بعد ماتظهر الفورما بشوية
ولما تروح تطلع الفورما مصغرة في شريط المهام
ايش السبب
وبالنسبة للكود نسخته من المنتدى من موضوع درس تعليمي عن الشاشة الافتتاحية
ياجماعة احد يساعدني
انا عاملة فورما اسمها splash
وهذا الكود في الفورما الاساسية حقت البرنامج
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox textBox1;
private System.ComponentModel.IContainer components;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
Thread th = new Thread(new ThreadStart(DoSplash));
th.Start();
Thread.Sleep(3000);
th.Abort();
Thread.Sleep(1000);
//
// TODO: Add any constructor code after InitializeComponent call
//
}
void DoSplash()
{
Splash sp = new Splash();
sp.ShowDialog();
}
/// <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.label1 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(8, 64);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(56, 23);
this.label1.TabIndex = 0;
this.label1.Text = "label1";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// panel1
//
this.panel1.Controls.Add(this.richTextBox1);
this.panel1.Location = new System.Drawing.Point(96, 8);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(184, 256);
this.panel1.TabIndex = 1;
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(8, 40);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(160, 192);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "richTextBox1";
//
// timer1
//
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// button1
//
this.button1.Location = new System.Drawing.Point(8, 168);
this.button1.Name = "button1";
this.button1.TabIndex = 1;
this.button1.Text = "button1";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(200, 312);
this.button2.Name = "button2";
this.button2.TabIndex = 1;
this.button2.Text = "file";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(48, 264);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(192, 20);
this.textBox1.TabIndex = 2;
this.textBox1.Text = "textBox1";
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(392, 398);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Controls.Add(this.button2);
this.Name = "Form1";
this.Text = "Form1";
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}وآسفة على الازعاج
السلام عليكم
اقتباسوآسفة على الازعاج
رصيدك إنتهى, عليك بتدارك الوضع عبر مساعدة باقي الأعضاء :P
هذا الموضوع مغلق.