Groups | Blog | Home
all groups > dotnet windows forms designtime > november 2005 >

dotnet windows forms designtime : How to generate code in Form_Load method. NOT in InitializeComponent()


JacksonYin
11/30/2005 4:21:34 PM
In VS2005, there is a so personal change about Binding Data.

IDE will gernerate the code about Adapter.Fill(DataSet) automatically. such
as:

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the
nwindDataSet.Categories' table. You can move, or remove it, as needed.
this.categoriesTableAdapter.Fill(this.nwindDataSet.Categories);

}
}
}

OK, now, How can I gernerate my expected code in Form_Load() in IDE Design
Time????


Regards




jokiz
12/2/2005 1:09:32 AM
what kind of code do you want to generate? is that line of code
dependent on the generated adapter fill lines?
AddThis Social Bookmark Button