arkadaşlar bir duyuru panosu programı yapıyorum araştıra araştıra sonuna geldim ancak lcd similasyonu gibi pixellerde kayıyor yazı ve pixellerden cıkınca kayboluyor nasıl düzeltebilirim yazının devamlı olması gerek.
kodlar ;
kodlar ;
Kod:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
namespace lcd_deneme
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.PictureBox led1;
private System.Windows.Forms.PictureBox led0;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Timer timer2;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Timer timer3;
private DataGridView dataGridView1;
private lcd.Database1DataSet database1DataSet;
private BindingSource tabloBindingSource;
private lcd.Database1DataSetTableAdapters.tabloTableAdapter tabloTableAdapter;
private DataGridViewTextBoxColumn baslikDataGridViewTextBoxColumn;
private DataGridViewTextBoxColumn duyuruDataGridViewTextBoxColumn;
private Button button7;
private Label label3;
private Button button8;
private System.ComponentModel.IContainer components;
public Form1()
{
InitializeComponent();
}
OleDbConnection bag = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=Database1.accdb");
OleDbCommand komut = new OleDbCommand();
DataTable tab = new DataTable();
private **** Listele()
{
tab.Clear();
OleDbDataAdapter adtr = new OleDbDataAdapter
("Select * From tablo ", bag);
adtr.Fill(tab);
dataGridView1.DataSource = tab;
}
protected override **** 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 **** InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.label1 = new System.Windows.Forms.Label();
this.led1 = new System.Windows.Forms.PictureBox();
this.led0 = new System.Windows.Forms.PictureBox();
this.button3 = new System.Windows.Forms.Button();
this.timer2 = new System.Windows.Forms.Timer(this.components);
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.button6 = new System.Windows.Forms.Button();
this.timer3 = new System.Windows.Forms.Timer(this.components);
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.database1DataSet = new lcd.Database1DataSet();
this.tabloBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.tabloTableAdapter = new lcd.Database1DataSetTableAdapters.tabloTableAdapter();
this.baslikDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.duyuruDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.button7 = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.button8 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.led1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.led0)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.database1DataSet)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tabloBindingSource)).BeginInit();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.******** = new System.Drawing.Point(248, 136);
this.textBox1.MaxLength = 10;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(152, 20);
this.textBox1.TabIndex = 2;
//
// button1
//
this.button1.******** = new System.Drawing.Point(136, 160);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(112, 48);
this.button1.TabIndex = 3;
this.button1.Text = "&LCD\'ye YAZ";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.******** = new System.Drawing.Point(400, 160);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(96, 48);
this.button2.TabIndex = 4;
this.button2.Text = "LCD\'yi Temizle";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// timer1
//
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// label1
//
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(162)));
this.label1.******** = new System.Drawing.Point(112, 96);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(88, 16);
this.label1.TabIndex = 7;
this.label1.Text = "Sola kaydır";
//
// led1
//
this.led1.Image = ((System.Drawing.Image)(resources.GetObject("led1.Image")));
this.led1.******** = new System.Drawing.Point(600, 200);
this.led1.Name = "led1";
this.led1.Size = new System.Drawing.Size(8, 8);
this.led1.TabIndex = 8;
this.led1.TabStop = false;
this.led1.Visible = false;
//
// led0
//
this.led0.Image = ((System.Drawing.Image)(resources.GetObject("led0.Image")));
this.led0.******** = new System.Drawing.Point(616, 200);
this.led0.Name = "led0";
this.led0.Size = new System.Drawing.Size(8, 8);
this.led0.TabIndex = 9;
this.led0.TabStop = false;
this.led0.Visible = false;
//
// button3
//
this.button3.******** = new System.Drawing.Point(264, 168);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(112, 40);
this.button3.TabIndex = 11;
this.button3.Text = "Yazının tersini göster";
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// timer2
//
this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
//
// button4
//
this.button4.******** = new System.Drawing.Point(208, 96);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(64, 24);
this.button4.TabIndex = 12;
this.button4.Text = "<<<<";
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button5
//
this.button5.******** = new System.Drawing.Point(384, 96);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(64, 24);
this.button5.TabIndex = 13;
this.button5.Text = ">>>>";
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// label2
//
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(162)));
this.label2.******** = new System.Drawing.Point(448, 96);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(100, 16);
this.label2.TabIndex = 14;
this.label2.Text = "Sağa Kaydır";
//
// button6
//
this.button6.******** = new System.Drawing.Point(280, 96);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(104, 24);
this.button6.TabIndex = 15;
this.button6.Text = "Kaydırmayı durdur";
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// timer3
//
this.timer3.Tick += new System.EventHandler(this.timer3_Tick);
//
// dataGridView1
//
this.dataGridView1.AutoGenerateColumns = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.baslikDataGridViewTextBoxColumn,
this.duyuruDataGridViewTextBoxColumn});
this.dataGridView1.DataSource = this.tabloBindingSource;
this.dataGridView1.******** = new System.Drawing.Point(36, 244);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.Size = new System.Drawing.Size(643, 150);
this.dataGridView1.TabIndex = 16;
//
// database1DataSet
//
this.database1DataSet.DataSetName = "Database1DataSet";
this.database1DataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// tabloBindingSource
//
this.tabloBindingSource.DataMember = "tablo";
this.tabloBindingSource.DataSource = this.database1DataSet;
//
// tabloTableAdapter
//
this.tabloTableAdapter.ClearBeforeFill = true;
//
// baslikDataGridViewTextBoxColumn
//
this.baslikDataGridViewTextBoxColumn.DataPropertyName = "baslik";
this.baslikDataGridViewTextBoxColumn.HeaderText = "baslik";
this.baslikDataGridViewTextBoxColumn.Name = "baslikDataGridViewTextBoxColumn";
//
// duyuruDataGridViewTextBoxColumn
//
this.duyuruDataGridViewTextBoxColumn.DataPropertyName = "duyuru";
this.duyuruDataGridViewTextBoxColumn.HeaderText = "duyuru";
this.duyuruDataGridViewTextBoxColumn.Name = "duyuruDataGridViewTextBoxColumn";
this.duyuruDataGridViewTextBoxColumn.Width = 500;
//
// button7
//
this.button7.******** = new System.Drawing.Point(600, 215);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(75, 23);
this.button7.TabIndex = 17;
this.button7.Text = "Basınız";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click_1);
//
// label3
//
this.label3.AutoSize = true;
this.label3.******** = new System.Drawing.Point(381, 220);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(216, 13);
this.label3.TabIndex = 18;
this.label3.Text = "Lütfen bir duyuruya tıklayınız ve eklemek için";
//
// button8
//
this.button8.******** = new System.Drawing.Point(36, 215);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(75, 23);
this.button8.TabIndex = 19;
this.button8.Text = "Listele";
this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// Form1
//
this.AcceptButton = this.button1;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.BackColor = System.Drawing.SystemColors.Info;
this.ClientSize = new System.Drawing.Size(711, 406);
this.Controls.Add(this.button8);
this.Controls.Add(this.label3);
this.Controls.Add(this.button7);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.button6);
this.Controls.Add(this.label2);
this.Controls.Add(this.button5);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.led0);
this.Controls.Add(this.led1);
this.Controls.Add(this.label1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.MaximizeBox = false;
this.Name = "Form1";
this.Text = "LCD sim. by CANER ŞAHAN";
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.led1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.led0)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.database1DataSet)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tabloBindingSource)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static **** Main()
{
Application.Run(new Form1());
}
PictureBox[,]ekransatir;
private **** Form1_Load(object sender, System.EventArgs e)
{
// TODO: This line of code loads data into the 'database1DataSet.tablo' table. You can move, or remove it, as needed.
this.tabloTableAdapter.Fill(this.database1DataSet.tablo);
ekransatir=new PictureBox[8,80];
int xpos=0;
int ypos=20;
int width=8;
int height=8;
for(int i=0;i<8;i++)
{
for(int j=0;j<80;j++)
{
ekransatir[i,j]=new PictureBox();
this.Controls.Add(ekransatir[i,j]);
ekransatir[i,j].Image=led0.Image;
ekransatir[i,j].SetBounds(xpos,ypos,width,height);
ekransatir[i,j].Show();
xpos+=8;
}
xpos=0;
ypos+=8;
}
}
int[,]A;
public **** harfsec(char karakter)
{
switch(karakter)
{
case ' ':
A=new int[8,8];
break;
case 'A':
A=new int[8,8]{{0,0,1,1,1,1,0,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0}};
break;
case 'B':
A=new int[8,8]{{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,1,1,1,1,0,0},
{0,1,1,1,1,1,0,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,1,1,1,1,1,0}};
break;
case 'C':
A=new int[8,8]{{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,1,1,1,1,1,0}};
break;
case 'Ç':
A=new int[8,8]{{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,1,0},
{0,1,1,1,1,1,1,0},
{0,0,0,1,1,0,0,0}};
break;
case 'D':
A=new int[8,8]{{0,1,1,1,1,1,0,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,1,1,1,1,0,0}};
break;
case 'E':
A=new int[8,8]{{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,1,1,1,1,1,0},
{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,1,1,1,1,1,0}};
break;
case 'F':
A=new int[8,8]{{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0}};
break;
case 'G':
A=new int[8,8]{{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,1,1,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,1,1,1,1,1,0}};
break;
case 'Ğ':
A=new int[8,8]{{0,1,0,0,0,0,1,0},
{0,0,1,1,1,1,0,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,0,1,1,1,1,1,0},
{0,0,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,0,1,1,1,1,0,0}};
break;
case 'H':
A=new int[8,8]{{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,1,1,1,1,1,0},
{0,1,1,1,1,1,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0}};
break;
case 'I':
A=new int[8,8]{{0,0,1,1,1,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,1,1,1,0,0,0}};
break;
case 'İ':
A=new int[8,8]{{0,0,0,1,0,0,0,0},
{0,0,1,1,1,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,1,1,1,0,0,0}};
break;
case 'J':
A=new int[8,8]{{0,0,0,0,0,1,0,0},
{0,0,0,0,1,1,1,0},
{0,0,0,0,0,1,0,0},
{0,0,0,0,0,1,0,0},
{0,0,0,0,0,1,0,0},
{0,0,0,0,0,1,0,0},
{0,1,0,0,0,1,0,0},
{0,0,1,1,1,0,0,0}};
break;
case 'K':
A=new int[8,8]{{0,0,0,0,0,0,0,0},
{0,1,0,0,0,1,0,0},
{0,1,0,0,1,0,0,0},
{0,1,0,1,0,0,0,0},
{0,1,1,0,0,0,0,0},
{0,1,0,1,0,0,0,0},
{0,1,0,0,1,0,0,0},
{0,1,0,0,0,1,0,0}};
break;
case 'L':
A=new int[8,8]{{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,1,1,1,1,1,0}};
break;
case 'M':
A=new int[8,8]{{0,1,0,0,0,0,0,1},
{0,1,1,0,0,0,1,1},
{0,1,0,1,0,1,0,1},
{0,1,0,0,1,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1}};
break;
case 'N':
A=new int[8,8]{{0,1,0,0,0,0,0,1},
{0,1,1,0,0,0,0,1},
{0,1,0,1,0,0,0,1},
{0,1,0,0,1,0,0,1},
{0,1,0,0,0,1,0,1},
{0,1,0,0,0,0,1,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1}};
break;
case 'O':
A=new int[8,8]{{0,0,1,1,1,1,0,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,0,1,1,1,1,0,0}};
break;
case 'Ö':
A=new int[8,8]{{0,0,0,1,0,1,0,0},
{0,0,1,1,1,1,1,0},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,0,1,1,1,1,1,0}};
break;
case'P':
A=new int[8,8]{{0,1,1,1,1,1,0,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,1,1,1,1,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0}};
break;
case 'R':
A=new int[8,8]{{0,1,1,1,1,1,0,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,1,1,1,1,0,0},
{0,1,1,1,0,0,0,0},
{0,1,0,0,1,0,0,0},
{0,1,0,0,0,1,0,0},
{0,1,0,0,0,0,1,0}};
break;
case'S':
A=new int[8,8]{{0,0,1,1,1,1,1,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,0,1,1,1,1,1,0},
{0,0,0,0,0,0,1,0},
{0,0,0,0,0,0,1,0},
{0,0,0,0,0,0,1,0},
{0,1,1,1,1,1,0,0}};
break;
case 'Ş':
A=new int[8,8]{{0,0,1,1,1,1,1,0},
{0,1,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,0,1,1,1,1,1,0},
{0,0,0,0,0,0,1,0},
{0,0,0,0,0,0,1,0},
{0,1,1,1,1,1,0,0},
{0,0,0,1,1,0,0,0}};
break;
case 'Q'://herkes türk değil ya canımmm::)))
A=new int[8,8]{{0,0,1,1,1,1,0,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,0,1,1,1,1,0,0},
{0,0,0,0,0,0,1,0}};
break;
case 'T':
A=new int[8,8]{{1,1,1,1,1,1,1,1},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0}};
break;
case 'U':
A=new int[8,8]{{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,0,1,1,1,1,1,0}};
break;
case 'Ü':
A=new int[8,8]{{0,0,0,1,0,1,0,0},
{0,0,0,0,0,0,0,0},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,0,1,1,1,1,1,0}};
break;
case 'V':
A=new int[8,8]{{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,1,0,0,0,0,0,1},
{0,0,1,0,0,0,1,0},
{0,0,0,1,0,1,0,0},
{0,0,0,0,1,0,0,0}};
break;
case 'Y':
A=new int[8,8]{{0,1,0,0,0,0,0,1},
{0,0,1,0,0,0,1,0},
{0,0,0,1,0,1,0,0},
{0,0,0,0,1,0,0,0},
{0,0,0,0,1,0,0,0},
{0,0,0,0,1,0,0,0},
{0,0,0,0,1,0,0,0},
{0,0,0,0,1,0,0,0}};
break;
case 'Z':
A=new int[8,8]{{0,1,1,1,1,1,1,1},
{0,0,0,0,0,0,1,0},
{0,0,0,0,0,1,0,0},
{0,0,0,0,1,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,1,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{0,1,1,1,1,1,1,1}};
break;
case'X':
A=new int[8,8]{{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,0,1,0,0,1,0,0},
{0,0,0,1,1,0,0,0},
{0,0,1,0,0,1,0,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0},
{0,1,0,0,0,0,1,0}};
break;
case'.':
A=new int[8,8]{{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{1,1,0,0,0,0,0,0},
{1,1,0,0,0,0,0,0}};
break;
case':':
A=new int[8,8]{{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,1,0,0,0,0,0},
{0,0,1,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,1,0,0,0,0,0},
{0,0,1,0,0,0,0,0},
{0,0,0,0,0,0,0,0}};
break;
case ',':
A=new int[8,8]{{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{1,0,0,0,0,0,0,0}};
break;
case '/':
A=new int[8,8]{{0,0,0,0,0,0,0,1},
{0,0,0,0,0,0,1,0},
{0,0,0,0,0,1,0,0},
{0,0,0,0,1,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,1,0,0,0,0,0},
{0,1,0,0,0,0,0,0},
{1,0,0,0,0,0,0,0}};
break;
case '!':
A=new int[8,8]{{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0}};
break;
case'(':
A=new int[8,8]{{0,0,0,0,0,1,0,0},
{0,0,0,0,1,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,1,0,0,0,0},
{0,0,0,0,1,0,0,0},
{0,0,0,0,0,1,0,0}};
break;
case ')':
A=new int[8,8]{{0,0,0,0,0,1,0,0},
{0,0,0,0,0,0,1,0},
{0,0,0,0,0,0,0,1},
{0,0,0,0,0,0,0,1},
{0,0,0,0,0,0,0,1},
{0,0,0,0,0,0,0,1},
{0,0,0,0,0,0,1,0},
{0,0,0,0,0,1,0,0}};
break;
case'^':
A=new int[8,8]{{0,0,0,0,1,0,0,0},
{0,0,0,1,0,1,0,0},
{0,0,1,0,0,0,1,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0}};
break;
case'*':
A=new int[8,8]{{0,1,0,0,0,0,1,0},
{0,0,1,0,0,1,0,0},
{0,0,0,1,1,0,0,0},
{0,1,1,1,1,1,1,0},
{0,0,0,1,1,0,0,0},
{0,0,1,0,0,1,0,0},
{0,1,0,0,0,0,1,0},
{0,0,0,0,0,0,0,0}};
break;
case '#':
A=new int[8,8]{{0,1,0,0,0,1,0,0},
{0,1,0,0,0,1,0,0},
{1,1,1,1,1,1,1,0},
{0,1,0,0,0,1,0,0},
{1,1,1,1,1,1,1,0},
{0,1,0,0,0,1,0,0},
{0,1,0,0,0,1,0,0},
{0,1,0,0,0,1,0,0}};
break;
case'?':
A=new int[8,8]{{0,0,0,1,1,0,0,0},
{0,0,1,0,0,1,0,0},
{0,0,0,0,0,1,0,0},
{0,0,0,0,0,1,0,0},
{0,0,0,0,1,0,0,0},
{0,0,0,0,1,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,1,0,0,0}};
break;
}
}
private **** button1_Click(object sender, System.EventArgs e)
{
yaz();
}
public **** yaz()
{
int gonder=0;
int i,j;
char[]gelen=textBox1.Text.ToUpper().ToCharArray();
for(i=0,j=0;i<gelen.Length && j<gelen.Length;i++,j++)
{
harfyaz(gonder,gelen[j]);
gonder+=8;
}
}
public **** harfyaz(int a,char c)
{
int x=a;
harfsec(c);
for(int i=0;i<8;i++)
{
x=a;
for(int j=0;j<8;j++)
{
if(A[i,j]==1)
{
ekransatir[i,x].Image=led1.Image;
}
else if(A[i,j]==0)
{
ekransatir[i,x].Image=led0.Image;
}
x++;
}
}
matristemizle();
}
public **** matristemizle()
{
for(int i=0;i<8;i++)
{
for(int j=0;j<8;j++)
{
A[i,j]=0;
}
}
}
private **** button2_Click(object sender, System.EventArgs e)
{
try
{
int sutun=0;
for(int i=0;i<8;i++)
{
sutun=0;
for(int j=0;j<80;j++)
{
A[i,sutun]=0;
ekransatir[i,j].Image=led0.Image;
sutun++;
if(sutun>7)
sutun=0;
}
}
textBox1.ResetText();
if(textBox1.CanFocus)
textBox1.Focus();
timer1.Stop();
timer2.Stop();
timer3.Stop();
}
catch(Exception err)
{
string hata=err.Message;
MessageBox.Show("Ekranda silinecek bir veri yok","Uyarı",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
}
private **** timer1_Tick(object sender, System.EventArgs e)
{
for(int i=0;i<8;i++)
{
for(int j=0;j<79;j++)
{
ekransatir[i,j].Image=ekransatir[i,j+1].Image;
}
}
}
private **** timer2_Tick(object sender, System.EventArgs e)
{
for(int i=0;i<8;i++)
{
for(int j=0;j<79;j++)
{
ekransatir[i,j].Image=ekransatir[i,j+1].Image;
ekransatir[i,79-j-1].Image=ekransatir[i,j+1].Image;
}
}
}
private **** button3_Click(object sender, System.EventArgs e)
{
timer2.Start();
timer1.Stop();
timer3.Stop();
}
private **** button4_Click(object sender, System.EventArgs e)
{
timer1.Start();
}
private **** button6_Click(object sender, System.EventArgs e)
{
timer1.Stop();
timer2.Stop();
timer3.Stop();
}
private **** button5_Click(object sender, System.EventArgs e)
{
timer3.Start();
}
private **** timer3_Tick(object sender, System.EventArgs e)
{
for(int i=0;i<8;i++)
{
for(int j=0;j<79;j++)
{
ekransatir[i,79-j].Image=ekransatir[i,79-j-1].Image;
}
}
}
private **** button7_Click(object sender, System.EventArgs e)
{
matristemizle();
yaz();
}
private **** button7_Click_1(object sender, EventArgs e)
{
textBox1.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();
}
private **** button8_Click(object sender, EventArgs e)
{
Listele();
}
}
}
Moderatör tarafında düzenlendi:

