تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
تعبئة او تنظيف كل مربعات النصوص TextBoxes
#1
PHP كود :
Private Sub ClearTextBoxes(ByVal root As Control)
 
    For Each ctrl As Control In root.Controls
         ClearTextBoxes
(ctrl)
 
        If TypeOf ctrl Is TextBox Then
             CType
(ctrlTextBox).Text String.Empty
 
        End If
 
    Next ctrl
 End Sub
 
Private Sub fill(ByVal root As Control)
 
    For Each ctrl As Control In root.Controls
         fill
(ctrl)
 
        If TypeOf ctrl Is TextBox Then
             CType
(ctrlTextBox).Text ctrl.Name
         End 
If
 
    Next ctrl
 End Sub 
بزر الامر نكتب: ClearTextBoxes(Me)
او
 fill(Me)
الرد }}}
تم الشكر بواسطة: Ashraf10 , Ashraf10



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


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