show us your effort friend....
Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
can you please send sample program with some search criteria,including clearing controls,validating and search criteria remains same when you click revise again in search form
Tratak was given u a codes, use it. however you didn't show how far u done with this? where is your effort? have u read a rules?? We only give homework help to those who show effort
Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
this following code to clear controls, you can add what control you want to clear :
Public Sub ClearControl(ByVal root As Control)
For Each ctrl As Control In root.Controls
ClearControl(ctrl)
If TypeOf ctrl Is TextBox Then
CType(ctrl, TextBox).Text = String.Empty
ElseIf TypeOf ctrl Is ComboBox Then
CType(ctrl, ComboBox).Text = String.Empty
End If
Next ctrl
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
ClearControl(Me)
End Sub
Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444