Opening an about window... then closing it

Posted on 2005-04-04
Medium Priority
Last Modified: 2010-04-23

I have two forms: frmMain and frmAbout.

Effectively, I just want to show frmAbout as a 'showModal' state form when the user selects a menu item.

When the user finishes reading frmAbout i want him to be able to click on a close button and have the application focus return to the mainfrm.

I've been searching around and i've seen some very complex solutions to this- im sure there is a straightforward and VERY easy way to do this...

Question by:mnamiri
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 12

Expert Comment

ID: 13702906
       Dim frmAbout_inst As New frmAbout


Is this what you were after?

Expert Comment

ID: 13702978
S-Twilley is right. Don't forget to set frmAbout's StartPosition to CentreParent

Author Comment

ID: 13704758
and what about closing the form?
I immagine you just say Me.Close()

is that right?

additionally, would I need to de-allocate any memory etc. i have assigned to creating the new form?
LVL 12

Accepted Solution

S-Twilley earned 750 total points
ID: 13707659
to close the about form, you can use Me.Close (within the form code itself)... or use the close button (i.e. the cross in top right), or other standard method....

as far as i know, if you use...

        Dim frmAbout_inst As New frmAbout

within a method body and then close it... the memory will eventually be deallocated, but since this is not a memory intensive task and wont be repeated over and over in quick succession, the wait for the GC (garbage collection) to deallocate it from memory won't be a problem

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

762 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