تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] محتاج مساعدة في كود في datagirdviwe
#2
PHP كود :
Private Sub DataGridView1_CellEndEdit(sender As ObjectAs DataGridViewCellEventArgsHandles DataGridView1.CellEndEdit
        
If e.ColumnIndex Or e.ColumnIndex Or e.ColumnIndex Or e.ColumnIndex 4 Then
            
If Not IsNothing(DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).ValueThen
                Dim b 
DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value
                
If IsNumeric(bThen
                    
If 400 Or < -400 Then
                        MsgBox
("يرجى ادخال رقم بين 400 و -400")
                        
DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value 0
                    End 
If
                Else
                    
MsgBox("يرجى ادخال ارقام فقط")
                    
DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value 0
                End 
If
            
End If
            
Calculate(e.RowIndex)
        
End If
    
End Sub
    Sub Calculate
(As Integer)
        
Dim x As Double Val(DataGridView1.Rows(i).Cells(1).Value)
        
Dim y As Double Val(DataGridView1.Rows(i).Cells(2).Value)
        
Dim x2 As Double Val(DataGridView1.Rows(i).Cells(3).Value)
        
Dim y2 As Double Val(DataGridView1.Rows(i).Cells(4).Value)
        
Dim xx x2
        Dim yy 
y2
        DataGridView1
.Rows(i).Cells(5).Value = ((xx 2) + (yy 2)) ^ (2)

    
End Sub 
الرد }}}
تم الشكر بواسطة: saudisgames


الردود في هذا الموضوع
RE: محتاج مساعدة في كود في datagirdviwe - بواسطة HASAN6.0 - 20-01-18, 09:28 PM


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


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم