Author: Brother_BluPhi | Posted on: 7/20/2010 3:35:06 PM | Views : 375

Ok after trial and error i figured out why my textboxes were not clearing.  It was because it was within TabCtl.
Im trying to insert data into the database and then clear the textboxes after the insert.  I used this code and hope you can see what im trying to do. Here i have a simpler project that i have implemented the add and then clear textBoxes after the user clicks the button.  How can i do the same thing within a TabCtrl?
 
Public Class Form1 Private Sub btnAddCustomer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddCustomer.Click Dim JobNumber As String Try JobNumber = txtJobNumber.Text Catch ex As Exception End Try ClearBoxes() End Sub Private Sub ClearBoxes() For Each ctrl As Control In Me.Controls If TypeOf ctrl Is TextBox Then ctrl.Text = "" Next ...

Go to the complete details ...