B
bobkardell
I am new to VB and am trying to learn by creating a flash-card program for
my son.
I have the database connected and I am using it; I have a dataset that is a
table full of my son's words and their definitions; The word is shown in a
text box on the form (works fine) and a button is below that says "click for
defintion." I have a hidden text box on the form to bind the definition
column in the dataset to the form. When the button is clicked I want to
capture the entry in the column associated with the word shown on the form
(naturally the word will change as he scrolls through the form) and display
it in a MessageBox when clicks on the button. I have tried several
different entries, but no luck:
===============
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim textval As String
textval = CardsTableAdapter.GetData(Database1DataSet.cards.definColumn)
MessageBox.Show(textval, ToString)
End Sub
===============
Any help is appreciated
Bob
my son.
I have the database connected and I am using it; I have a dataset that is a
table full of my son's words and their definitions; The word is shown in a
text box on the form (works fine) and a button is below that says "click for
defintion." I have a hidden text box on the form to bind the definition
column in the dataset to the form. When the button is clicked I want to
capture the entry in the column associated with the word shown on the form
(naturally the word will change as he scrolls through the form) and display
it in a MessageBox when clicks on the button. I have tried several
different entries, but no luck:
===============
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim textval As String
textval = CardsTableAdapter.GetData(Database1DataSet.cards.definColumn)
MessageBox.Show(textval, ToString)
End Sub
===============
Any help is appreciated
Bob