![]() |
| ||
| vb.net code for searching Can anyone please send code for search form which contains clearing controls,validating and contains same criteria when you click search again button. |
| ||
| Re: vb.net code for searching show us your effort friend.... |
| ||
| Re: vb.net code for searching Dim txtb() As TextBox = {txtA, txtB, txtC}
or For Each ctrl As Object In Me.Controls |
| ||
| Re: vb.net code for searching 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 |
| ||
| Re: vb.net code for searching Quote:
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 |
| ||
| Re: vb.net code for searching sub clear() me.combobox1.clear() me.combobox2.clear() me.textbox1.clear() end sub Private Sub nameTextBox1_Validated(sender As Object, e As System.EventArgs) Handles nameTextBox1.Validated If IsNameValid() Then ' Clear the error, if any, in the error provider. nameErrorProvider.SetError(Me.nameTextBox1, "") Else ' Set the error if the name is not valid. nameErrorProvider.SetError(Me.nameTextBox1, "Name is required.") End If End Sub |
| ||
| Re: vb.net code for searching this following code to clear controls, you can add what control you want to clear : Public Sub ClearControl(ByVal root As Control) |
| All times are GMT -4. The time now is 7:38 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC