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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:03:19+00:00 2026-05-15T22:03:19+00:00

OK so my question is self explanatory, here is some code so you can

  • 0

OK so my question is self explanatory, here is some code so you can understand a little more.

public Dictionary<string,VcardWindow> VcardWindowManager 
    = new Dictionary<string,VcardWindow>();'

And access like so:

public void ShowVcardWindow(string VcardOwner)
{
   VcardWindow Window;
   if(VcardWindowManager.ContainsKey(VcardOwner))
   {
      Window = VcardWindowManager[VcardOwner];
   }
   else
   {
       Window = new VcardWindow(VcardOwner);
       //Startup Code
       VcardWindowManager.Add(VcardOwner,Window);
   }
   //Invoker here
}

Is by storing windows in a dictionary OK? Are there other means that are faster and safer?

  • 1 1 Answer
  • 1 View
  • 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-15T22:03:20+00:00Added an answer on May 15, 2026 at 10:03 pm

    An instance of a Form is an object like any other, and so you can store its reference in a Dictionary. Using a Dictionary in this case is the correct way to store a collection of objects that need to be accessed according to a key, in a single-threaded scenario.

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

Sidebar

Related Questions

Question is pretty self explanatory i guess. Here is the code I'm using: function
Well the question is self-explanatory. One more thing would be, if it is a
I think the question itself is pretty self-explanatory. The code is given below -
The following code is pretty self-explanatory and my question is very simple : Why
The title of this question is self-explanatory. I've heard I can mimic this using
Here's a self explanatory piece of code: while (myInkPresenter.Children.Count > 0) { myInkPresenter.Children.RemoveAt(myInkPresenter.Children.Count -
Hi the question is self-explanatory. Can I use REST call to API which uses
The question is pretty self-explanatory. I don't understand what the return is doing in
The question is pretty self-explanatory. When I close emacs and some changes are unsaved,
I think the question is self explanatory. If I declare a property of a

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.