I've searched for the answer for this question on google, searched multiple forums and still no answers and im starting to think maybe im either asking the wrong question or going about it all wrong.
Heres my problem, i have a form, inside the form are text boxes, a navigation bar, a datagrid and a search button. The text boxes, navigation bar and datagrid are all bound to a dataset. I have 1 text box called Txsearch.text and 1 button called Search.
Basically when someone enter's an item number into Txsearch and clicks search, the fields in the form will jump to that exact record.
Up until now ive been trying to code my search button to use the rows.find method but in my obvious stupidity i cannot get it to work. Now i have downloaded the 101 samples from MSDN and found that they use:
Me.CustomersTableAdapter.FillByCompanyName(Me.NorthwindDataSet.Customers, searchToolStripTextBox.Text)
So ive tried to use this as well changing the various names to suit my form. My newest problem using this method is "FillByNo". VB.net is telling me that FillByNo is not a member of my WindowsApplication1....
When im typing this into VB.net, as im sure you are all aware, VB kind of lists all my available options depending of what im typing, ".FillBy" is not an option from that list.
Do i have to declare this somewhere on the code, how do i make this a member of my application or what am i doing wrong...
This question is really bugging the life out of me... It didn't take me this long to figure it out in standard VB6
Please help, and thanks to all that reply
D
Heres my problem, i have a form, inside the form are text boxes, a navigation bar, a datagrid and a search button. The text boxes, navigation bar and datagrid are all bound to a dataset. I have 1 text box called Txsearch.text and 1 button called Search.
Basically when someone enter's an item number into Txsearch and clicks search, the fields in the form will jump to that exact record.
Up until now ive been trying to code my search button to use the rows.find method but in my obvious stupidity i cannot get it to work. Now i have downloaded the 101 samples from MSDN and found that they use:
Me.CustomersTableAdapter.FillByCompanyName(Me.NorthwindDataSet.Customers, searchToolStripTextBox.Text)
So ive tried to use this as well changing the various names to suit my form. My newest problem using this method is "FillByNo". VB.net is telling me that FillByNo is not a member of my WindowsApplication1....
When im typing this into VB.net, as im sure you are all aware, VB kind of lists all my available options depending of what im typing, ".FillBy" is not an option from that list.
Do i have to declare this somewhere on the code, how do i make this a member of my application or what am i doing wrong...
This question is really bugging the life out of me... It didn't take me this long to figure it out in standard VB6
Please help, and thanks to all that reply
D