Solved

new form pop up

Posted on 2009-07-03
3
345 Views
Last Modified: 2012-05-07
I am writting a program that needs a settings menu.  I want this as a pop up menu that the user can edit information, and then bring it back into the application i am writting.

How is this accieved
0
Comment
Question by:cotj73
  • 2
3 Comments
 
LVL 19

Expert Comment

by:daveamour
Comment Utility
What kind of program is this and do you want your settings persisted anywhere other than memory?
0
 
LVL 1

Author Comment

by:cotj73
Comment Utility
This is a Data Analysis Program, with the selected settings staying in the memory. All that i really want to know is how to make another window pop up, and how to pass an array out of that window back to the main program i am writiiting
0
 
LVL 19

Accepted Solution

by:
daveamour earned 500 total points
Comment Utility
I would code settings in a settings class.  I would code this as a singleton in which case it would be accesible from your main form and your popup form.
To make another window pop up you just create a new instance of the form and then call Show or ShowDialog.
Singleton - http://www.yoda.arachsys.com/csharp/singleton.html
 
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: Ivo
Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now