تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[سؤال] حساب عدد الساعات
#2
كود :
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs)
   Dim d1 As DateTime
   Dim d2 As DateTime

   For i As Integer = 0 To dataGridView1.RowCount - 1
       d1 = Convert.ToDateTime(dataGridView1.Rows(i).Cells(2).Value)
       d2 = Convert.ToDateTime(dataGridView1.Rows(i).Cells(1).Value)
       Dim ts As TimeSpan = d1 - d2
       dataGridView1.Rows(i).Cells(3).Value = ts.Days
   Next
End Sub
الرد }}}


الردود في هذا الموضوع
حساب عدد الساعات - بواسطة thabit - 10-04-22, 10:37 PM
RE: حساب عدد الساعات - بواسطة aljzazy - 11-04-22, 01:41 AM


التنقل السريع :


يقوم بقرائة الموضوع: