You're on the right track and your code needs small improvement:
private void Button2_Click(object sender, EventArgs e)
{
EntityContext ec = new EntityContext()
{
TextBox3s = tb,
TextBox4s = dtb4,
TextBox5s = dtb5,
TextBox6s = dtb6,
ComboBox2s = cm
};
ExampleDataContext dc = new ExampleDataContext()
dc.InsertOnSubmit(ec);
dc.SubmitChanges();
}
Note:
EntityContext
is a class which field names and types correspond to your table's fields.
For further details, please see:
Table<TEntity>.InsertOnSubmit(TEntity) Method (System.Data.Linq) | Microsoft Docs[
^]
Note: Using field names equal to control's names is very strange...