John Delmark Aguilar

Delmark - Profiling
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Textbox Tricks

View previous topic View next topic Go down 
AuthorMessage
dElmARk
Admin
Admin
avatar

Posts : 92
Join date : 09/04/2012

PostSubject: Textbox Tricks   Thu Apr 18, 2013 6:12 am

Clear all text from texbox
Code:

Private Sub ClearTextboxes()
  For Each txt As Control In Me.Controls
    If TypeOf txt Is TextBox Then
      txt.Text = ""
    End If
  Next
End Sub

Enable/Disable all textbox
Private Sub EnableTextboxes(ByVal IsEnable As Boolean)
For Each txt As Control In Me.Controls
If TypeOf txt Is TextBox Then
txt.Enabled = IsEnable
End If
Next
End Sub
Back to top Go down
View user profile http://delmark.meabout.com
 
Textbox Tricks
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
John Delmark Aguilar :: dElmARk Productions :: VB.net Programs :: VB Tutorials | Tips and Tricks-
Jump to: