Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

ok so I have this in a module :

Public frm As New mainForm()

 

and this in a button click sub :

frm.Show()

 

with the button I want also to close the current form .

 

It works with

Me.Hide()

( same result for the end-user ) but I know this doesn't unload the form from memory ...

 

doesn't work with

Me.Close()

, because it closes both forms

Development & Research Department @ Elven Soft
  • *Experts*
Posted
You don't have much choice than hiding if the first form you are trying to close is the form the application loop depends on, if the form closes so does that application loop.
Posted (edited)

close/open forms

 

I have had the same irritating 'problem':

 

let's see if I can attach here a zip-file

if they arrive, youre problems are solved

for alway's and ever.

 

regards,

 

reinier:D

 

[edit]Attachement removed - Please repost it without binary files[/edit]

Edited by mutant
  • *Experts*
Posted

Attaching binary files is against the forum rules :).

As I said before, if you want to keep your application loop alive then the form it is running against can't be closed down. Why don't you simply want to hide it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...