VB .net Me.close() problems - TechRepublic
Question
June 20, 2007 at 06:07 AM
fsposaro

VB .net Me.close() problems

by fsposaro . Updated 18 years, 11 months ago

Hello,

I am using Microsoft Visual Studio 8.0 with the .net framework 2.0. I am programming an interface with buttons that open other apps when pressed. After I do a .ShowDialog() for the new app, I close the current on with Me.Close(). The problem is Me.close() doesn’t always close the previous app. Of course if a button click on the new app takes me back to the previous window I get an error because .ShowDialog() is trying to open something that is already there.
Is there an easy fix to ensure that the app always closes when I ask it to. I’m trying to avoid checking to see if an app is open every time and using both .Show() and .ShowDialog() accordingly.

This discussion is locked

All Comments