becool20082008
Member
- Joined
- Sep 16, 2009
- Messages
- 5
- Programming Experience
- 1-3
hi i'm new to vb.net 2005 using visual studio 2005 and have datagrid view and a textbox and button. the datagrid view is connected to ms access database.i want to write the name in the textbox and on button press i want the name and the row of it to be highlighted in the datagrid and this is my start code:
Public Class Form1
Dim da As OleDbDataAdapter
Dim ds As New DataSet
Dim con As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source =C:\Users\Haidar\Desktop\Newproject\Farahnet1.mdb;")
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Farahnet1DataSet.Farahnet_Customers' table. You can move, or remove it, as needed.
Me.Farahnet_CustomersTableAdapter.Fill(Me.Farahnet1DataSet.Farahnet_Customers)
End Sub
End Class
thank you for help
best regards
Public Class Form1
Dim da As OleDbDataAdapter
Dim ds As New DataSet
Dim con As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source =C:\Users\Haidar\Desktop\Newproject\Farahnet1.mdb;")
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Farahnet1DataSet.Farahnet_Customers' table. You can move, or remove it, as needed.
Me.Farahnet_CustomersTableAdapter.Fill(Me.Farahnet1DataSet.Farahnet_Customers)
End Sub
End Class
thank you for help
best regards