473,320 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Split InitializeComponent()

Anyone know how to split InitializeComponent() in vb.net 2003?

Regards
PCK
Feb 6 '06 #1
3 1377
Hi,

Can you please specify what is your exact requirement? By 'split', what
do you mean?

Regards,
Jim

Feb 6 '06 #2
Dear Jim

What I mean is split the coding inside initilizaComponent.
"jim4u" <ji***@sify.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Hi,

Can you please specify what is your exact requirement? By 'split', what
do you mean?

Regards,
Jim

Feb 7 '06 #3
Phoon,

I do assume you mean the InitializeComponent method generated by VS.Net
in Asp.Net and Windows forms.

Basically, in ASP.Net, only event handlers are added in
InitializeComponent
e.g.: this.grdProjects.ItemDataBound += new
System.Web.UI.WebControls.DataGridItemEventHandler (this.grdProjects_ItemDataBound);

In Windows forms, controls are initialized, properties set, and event
handlers are added in InitializeComponent.
e.g.:
this.cancelButton = new System.Windows.Forms.Button();
this.cancelButton.Text = "Cancel";
this.cancelButton.Click += new
System.EventHandler(this.CancelButton_Click);

Do you want to split code in InitializeComponent in Asp.Net or Windows
forms? How do you want to split coding? Do you want to split it into
two like
#1. Control initialization and property setting.
#2. Adding event handlers. ?

or into three like
#1. Control initialization
#2. Property setting
#3. Event handlers ?

Regards,
Jim

Feb 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ryan Liu | last post by:
I think there are two way to define user control. For example, I want to define a ComoBox with contains only AM, PM items. a.. One way I define a class extends...
1
by: Fulcrum | last post by:
My program has 4 tabs with a few usercontrols that each have a lot of controls on them. Added to that a few oleDb database connections etc. Because of this the program spends a lot of time during...
8
by: edster | last post by:
A *lot* of our teams code is being deleted from the InitializeComponent() section of a winform, such as Grid settings, event handler hooks, layout settings etc. This mainly seems to happen to 3rd...
3
by: Scott Kilbourn | last post by:
Hi, I added some custom code to the InitalizeComponent function of a control that I'm working on. Every once in a while, I've noticed that the code that I added disappears. I finally tracked...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.