Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 581693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:36:25+00:00 2026-05-13T14:36:25+00:00

Lets say we have a form consisting of 20+ controls, for example buttons. We

  • 0

Lets say we have a form consisting of 20+ controls, for example buttons.
We want to create handlers for the On-click event for all of them.

The usual way is to go to the designer and double-click each button to have it automatically create the function.
Another way is to create them yourself in code, after the InitializeComponent() function.

Is the difference between the two?
1) In performance
2) In speed
3) Garbage collecting

The first way is easy but lately I’ve been thinking about the second because its easy to see (in one place) what controls have what events handled without going to the designer which is a real pain if you have the controls cluttered…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:36:25+00:00Added an answer on May 13, 2026 at 2:36 pm

    Creating them through the designer is exactly the same as defining them in code yourself.

    What actually happens is they are placed within the InitializeComponent() method on the form, which is normally in the designer.cs file. So it’s there, it’s just a little more hidden from the developer.

    This means that neither performance/speed nor garbage collection will be affeted in anyway 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few text boxes and buttons on my form. Lets say txtBox1
Ok lets say I have div with form elements inside of it. I want
For simplicity lets say I have two flex mxml pages. form.mxml button.mxml If the
Lets say I have several web sites on my web server, all as applications
Lets say I have a form called MainForm and a control on it: somelabel.
Lets say i have a form which have the following : Name:TextBox Email:TextBox Age:TextBox
lets say i have a main form which have a lot of functionallity. this
lets'say i have a form, with like this : <form name=frmMail method=POST action=save.do dojoType=dijit.form.Form
Lets say i have a form with 2 textboxs im in a different thread
Lets say I have a really simple html form: <form action=./whatever.php method=POST> <input type=submit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.