No Option to Bind Textbox

W

Wayne Wengert

I have a form with some text boxes. In the form load event I create a data
adapter and a dataset. When I try to write the code to add a binding to the
textbox, the DataBindings option is not there? I thought I needed to write
code like:

txtFirstName.DataBindings.Add("Text", dsMyDataset, "MyTable.FName")

Wayne
 
W

Wayne Wengert

William;

Thanks for the response. My code is in the Form Load Sub

Private Sub frmEditNamesEntry_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

strSQL = "SELECT * FROM Names Where ((Names.NameID) = intSelectedID) "

Dim da As New SqlDataAdapter(strSQL, cn)

Dim ds As New DataSet

Dim intRowCount As Integer

da.Fill(ds, "SelectedName")

intRowCount = ds.Tables(0).Rows.Count()

txtFirstName. <== Intellisense does not include the DataBindings choice?



Wayne
 
W

Wayne Wengert

I shut down the solution and re-opened it and now the DataBindings option is
there? Weird. It must be a "feature" <smile!>

Wayne
 
S

scorpion53061

Bill,

Is it difficult to make a namespace produce the intelligence you want or
do I have to buy a third party product to do it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top