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 6539877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:54:41+00:00 2026-05-25T10:54:41+00:00

TextBox tb = Form1.thisForm.Controls[textbox1] as TextBox; how come i cant do the same with

  • 0
TextBox tb = Form1.thisForm.Controls["textbox1"] as TextBox;

how come i cant do the same with a backgroundWorker control?

backgroundWorker wk = Form1.thisForm.Controls["backgroundWorker1"] as backgroundWorker;
  • 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-25T10:54:41+00:00Added an answer on May 25, 2026 at 10:54 am

    Because BackgroundWorker is not Control and doesn’t belong to Controls collection.

    Windows Form designer generates C# code which creates backgroundWorker1 instance. You can use it directly. But this instance is not added (and cannot be added) to the Form Controls property.

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

Sidebar

Related Questions

C# question: I have a textBox in a default form Form1 and I want
I have a form that contains an object TextBox1 (TextBox1 control) In the code
Say I have a ListView control with a TextBox control in the ItemTemplate: <asp:ListView
I have a Form with TextBox on it like this: Form f = new
When you use a Windows Forms TextBox, the default number of tab stops (spaces)
I have my own textbox which inherits System.Windows.Forms.TextBox I am trying to display texts
How can I check if all the elements inside a form textbox, checkbox, textarea,
What is he best way to implement Watermark functionality for a System.Windows.Forms.TextBox in .Net
How do I pass a form's TextBox object to the a method? The following
I've got a TextBox on a form that I am using to just display

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.