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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:56:01+00:00 2026-06-02T07:56:01+00:00

How to prevent User Control from being initialized? I want to initialize it by

  • 0

How to prevent User Control from being initialized? I want to initialize it by myself, not in the constructor in InitializeComponent(); ?

  • 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-06-02T07:56:03+00:00Added an answer on June 2, 2026 at 7:56 am

    Well that seems silly, but you have already answered your question; remove the call to InitializeComponent(). Have fun recreating the auto-generated designer code!

    EDIT:

    Ok, so per your edit we know what the actual problem you are trying to solve is:

    Thanks for replies, but the problem is a little bit different. This control isn’t mine (it is windows live control). I want all other controls in the page to be properly initialized, and this one should be loaded later, on user demand (it connects to the internet, it is wp7 application). How to achieve this?

    Thus, you need to add the control at runtime instead of at design time. This is easy to do.

    var ctrl = new SomeControl();
    // initialize control properties...
    
    // this is your user control, a control within 
    // the user control, whatever the parent should be.
    parentControl.Children.Add(ctrl);  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a ASP.NET application. I want to prevent the user from
I have an HTML textarea element. I want to prevent a user from entering
So I am trying to prevent the user from being able to use the
I want to know how to prevent the user from drawing outside my school
How can I prevent a user from resizing GridViewColumns withing a ListView control?
Is it possible to prevent user from writing letters to a textbox (i.e. force
In wpf how can i prevent user from moving the windows by dragging the
After processing form from POST I should redirect, to prevent user from hitting back.
How can I prevent a user from tabbing into a field (comboxbox)?
On my forms I prevent the user from submitting the form by clicking enter

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.