0% found this document useful (0 votes)
93 views1 page

برمجة تطبيقات ويندوز بالعربية

C# programming commands

Uploaded by

abdou hass
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views1 page

برمجة تطبيقات ويندوز بالعربية

C# programming commands

Uploaded by

abdou hass
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

: ‫برمجة زر اقفال النافذة‬ -1

; )( This. Close ‫نستعمل االمرالتالي‬

: ‫الربط مع قاعدة البيانات و انشاء المتغيرات‬ -2


3- using System;
4- using System.Collections.Generic;
5- using System.ComponentModel;
6- using System.Data;
7- using System.Data.SqlClient;
8- using System.Drawing;
9- using System.Linq;
10-using System.Text;
11-using System.Windows.Forms;
12-
13-namespace ‫تسجيل_الدخول‬
14-{
15- public partial class Form1 : Form
16- {
17- SqlConnection con = new SqlConnection();
18- Sqlcommand com = new sqlcommand();
19- public Form1()
20- {
21- InitializeComponent();
22- con.ConnectionString = @"Data Source=DEVELOPMENT;Initial
Catalog=Gstock1;Integrated Security=True";
23-
24- }
25-
26- private void panel3_Paint(object sender, PaintEventArgs e)
27- {
28-
29- }
30-
31- private void button2_Click(object sender, EventArgs e)
32- {
33- Close();
34- }
35- }
36-}

: ‫ برمجة زر الدخول‬-3

-
: ‫نقو م بفتح االتصال‬

You might also like