Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / December 2005

Tip: Looking for answers? Try searching our database.

How to generate code in Form_Load method. NOT in InitializeComponent()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JacksonYin - 30 Nov 2005 08:21 GMT
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 - 02 Dec 2005 09:09 GMT
what kind of code do you want to generate?  is that line of code
dependent on the generated adapter fill lines?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.