c# ile eğlenceli projeler
Başlangıç ve Bitiş Tarihleri Arasındaki Gün Farkını Veren Proje Kodlar: Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim ilk, son As DateTime ilk = DateTimePicker1.Value son = DateTimePicker2.Value Dim fark As TimeSpan fark = son.Subtract(ilk) TextBox1.Text = fark.Days.ToString() + 1 End Sub Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load End Sub Private Sub DateTimePicker1_ValueChanged(sender As Object, e As EventArgs) Handles DateTimePicker1.ValueChanged End Sub End Class Form İçin Gerekenler: 2 adet-Date time picker 1 adet-textbox 1 adet-button