S
Shane Saunders
I have a menu option that loads a form and displays infomation. if you go to
main form and try to load something else from that same menu, it does a
check to see if the form in exist and then reloads it has to or does
messagebox. the problem i have is that i want to set the module instance
varible to nothing when i exit the form that is being check.
The code i am use is
If frmWeatherMap Is Nothing Then
objWeatherMaps.WeatherMap = strMapLoc
frmWeatherMap = New frmWeatherMap()
frmWeatherMap.Show()
Else
MessageBox.Show("There is a Instance of Weather Maps already Runing" &
ControlChars.CrLf _
& "To see another map, Please use the Weather Map Menu in Weather Map
Window.", "Weather Map Instance Warning", MessageBoxButtons.OK,
MessageBoxIcon.Information)
End If
main form and try to load something else from that same menu, it does a
check to see if the form in exist and then reloads it has to or does
messagebox. the problem i have is that i want to set the module instance
varible to nothing when i exit the form that is being check.
The code i am use is
If frmWeatherMap Is Nothing Then
objWeatherMaps.WeatherMap = strMapLoc
frmWeatherMap = New frmWeatherMap()
frmWeatherMap.Show()
Else
MessageBox.Show("There is a Instance of Weather Maps already Runing" &
ControlChars.CrLf _
& "To see another map, Please use the Weather Map Menu in Weather Map
Window.", "Weather Map Instance Warning", MessageBoxButtons.OK,
MessageBoxIcon.Information)
End If