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

  • Home
  • SEARCH
  • 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 7643801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:32:10+00:00 2026-05-31T09:32:10+00:00

I am composing new webbrowser elements like the way below webnew = new WebBrowser();

  • 0

I am composing new webbrowser elements like the way below

webnew = new WebBrowser();
webnew.Height = 1024;
webnew.Width = 768;
webnew.Name = "webBrowser1";
webnew.Navigated += new NavigatedEventHandler(wbMain_Navigated);
stackPanel1.Children.Add(webnew);
webnew.Navigate("url");

Now when i remove the element at stackPanel1 like the way below does it get destroyed completely ? I want it to be completely destroyed and removed from ram. If not how to completely destroy such dynamically composed element ? Thank you.

  stackPanel1.Children.RemoveAt(0);

C# , C# 4.0 , WPF

  • 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-31T09:32:11+00:00Added an answer on May 31, 2026 at 9:32 am

    Yes, eventually when the garbage collector gets to it.

    However, since WebBrowser implements IDisposable – you should really call

    webnew.Dispose()
    

    before removing it from the stackpanel.

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

Sidebar

Related Questions

I'm currently using Jade on a new project. It seems well-suited to composing webapp
When trying new software and compiling with the classic ./configure , make , make
I'm having trouble composing a CakePHP find() which returns the records I'm looking for.
This piece of code (in Scala) val contents = { assert(mainWindow.detailsPane != null) new
The url to launch email and start a new email on an iphone is
How do I add multiple strings to a string ? Whats the easiest way
I would like to create all my widgets before inserting them into my swt
in my application the user is requested to enter data in a form-like editor.
i have composite object Composite composite = new Composite(shell, SWT.NONE); composite.setBounds(new Rectangle(10,10,100,100); How do
I've got a very simple WPF UserControl that looks like this: namespace WpfControlLibrary1 {

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.