Hi everyone!
Please help me, I am beginner of the vb.net , I want know how to create dataset coding and
binding a textboxes,combobox and masked textbox pelase help me

Recommended Answers

All 3 Replies

you can use dataAdapter n generate dataset. or declare variable as new data set.

Is this what you are looking for?

'declare the dataset
Dim ds As New DataSet

'bind to textbox
Me.textbox1.DataBindings.Add(New Binding("Text", ds, "Tablename.ColumnName"))

'bind combo
me.ComboBox1.DataBindings.Add(new Binding("Text", ds, "tablename.columnname"))

'bind the masked text
Me.MaskedTextBox1.DataBindings.Add(New Binding("Text", ds, "tablename.columnname"))

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.