-1-
-2-
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace wfa0038
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Application.OpenForms[0].Show();
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
DateTime dt = dateTimePicker1.Value;
label1.Text = dt.ToString("dddd dd MMMM yyyy ");
label2.Text = dateTimePicker1.Text;
}
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
DateTime dt = dateTimePicker1.Value;
label1.Text = dt.ToString(" dddd MMMM yy ");
label2.Text = dateTimePicker1.Text;
}
private void Form2_Load(object sender, EventArgs e)
{
dateTimePicker3.Value = DateTime.Now;
}
private void button3_Click(object sender, EventArgs e)
{
label3.Text = dateTimePicker7.Text;
//label4.Text = dateTimePicker7.Value.Day.ToString();
//label4.Text = dateTimePicker7.Value.Date.ToString();
//label4.Text = dateTimePicker7.Value.DayOfWeek.ToString();
label4.Text = dateTimePicker7.Value.DayOfYear.ToString();
//label4.Text = dateTimePicker7.Value.;
}
private void label3_Click(object sender, EventArgs e)
{
}
private void dateTimePicker7_ValueChanged(object sender, EventArgs e)
{
}
private void button4_Click(object sender, EventArgs e)
{
Form3 frm3 = new Form3();
frm3.Show();
this.Hide();
}
}
}
0041 كل شئ عن التاريخ والوقت فى سى شارب Date and time in c sharp جزء4
==============
code
https://course-7.blogspot.com/2020/08/0039-date-and-time-in-c-sharp.html
جزء اول
https://course-7.blogspot.com/2020/08/0038-date-and-time-in-c-sharp.html
جزء 2
https://course-7.blogspot.com/2020/08/0038-date-and-time-in-c-sharp.html
ج3
https://course-7.blogspot.com/2020/08/0040-date-and-time-in-c-sharp-3.html
====================
====================
قائمة الملفات
===================
كورس Windows Desktop Applications in c sharp مهندس بديع موسى راجى
https://www.youtube.com/playlist?list=PLMmy9Ec9B98yVy2t1hE3t4t1zKAxAvpkW
==========
قائمة الملفات
===================
تعلم لغة c sharp من البداية الى الاحتراف مهندس بديع موسى راجى
https://www.youtube.com/playlist?list=PLMmy9Ec9B98xzr_x2vafMGx9_gCIkZhM6
======================
قائمة الملفات
===============
كورس Object-oriented programming C Sharp مهندس بديع موسى راجى
https://www.youtube.com/playlist?list=PLMmy9Ec9B98yRqBvoBB2Wi3mNro5DDdOL
=======================
قائمة الملفات
===============
Database Analysis and design Full course - ERD schema مهندس بديع موسى راجى1
https://www.youtube.com/playlist?list=PLMmy9Ec9B98zl-h_NvnQAs8BW8QRMIw-P
======================
قائمة الملفات
===============
تعلم باحتراف MS SQL server 2019 مهندس بديع موسى راجى
https://www.youtube.com/playlist?list=PLMmy9Ec9B98zuTzQXSZYomkE-RLntASLB
=================
الموقع
https://course-7.blogspot.com/
-3-
-4-