Click here to Skip to main content
16,006,341 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralShellExecute Pin
Brendan Vogt28-Nov-04 19:14
Brendan Vogt28-Nov-04 19:14 
GeneralRe: ShellExecute Pin
Dave Kreskowiak29-Nov-04 3:04
mveDave Kreskowiak29-Nov-04 3:04 
GeneralSplash Form Pin
Brendan Vogt28-Nov-04 19:13
Brendan Vogt28-Nov-04 19:13 
GeneralRe: Splash Form Pin
playout28-Nov-04 21:46
playout28-Nov-04 21:46 
GeneralRe: Splash Form Pin
Brendan Vogt28-Nov-04 22:06
Brendan Vogt28-Nov-04 22:06 
GeneralRe: Splash Form Pin
Gavin Jeffrey30-Nov-04 3:37
Gavin Jeffrey30-Nov-04 3:37 
GeneralLoading of Forms Pin
Brendan Vogt28-Nov-04 19:11
Brendan Vogt28-Nov-04 19:11 
GeneralRe: Loading of Forms Pin
Dave Kreskowiak29-Nov-04 1:33
mveDave Kreskowiak29-Nov-04 1:33 
Brendan Vogt wrote:
I need to know, when I use the Form.close() method, does this mean the reference to this form is destroyed and no longer exists?

No, it doesn't. You actually don't have to put any .Close() statement in the Closing event of the form. The form is already closing when this event fires.

But, when you use .ShowDialog(), you have to explicitly .Dispose() of the form when your done. If you don't, you will cause a resource leak in your application. Form's use resources outside the managed framework which must be explicitly .Dispose()ed of.
'Load the about form
Dim aboutForm As New frmAbout()
aboutForm.ShowDialog()
aboutForm.Dispose()



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralBarocde Scanner Communication Pin
AkAdescentIvy28-Nov-04 18:40
AkAdescentIvy28-Nov-04 18:40 
GeneralColumn Name Pin
nitin_ion28-Nov-04 17:13
nitin_ion28-Nov-04 17:13 
GeneralOffice Addins Powerpoint Saveas dialog Pin
shinay28-Nov-04 10:35
shinay28-Nov-04 10:35 
GeneralI Need a help in MP3 Pin
The_Debugger28-Nov-04 7:31
The_Debugger28-Nov-04 7:31 
GeneralMDI applications that can act like SDI Pin
ddd0127-Nov-04 17:10
ddd0127-Nov-04 17:10 
GeneralRe: MDI applications that can act like SDI Pin
Dave Kreskowiak28-Nov-04 17:26
mveDave Kreskowiak28-Nov-04 17:26 
GeneralRun a file in the proper application Pin
Reedmon2927-Nov-04 4:27
Reedmon2927-Nov-04 4:27 
GeneralRe: Run a file in the proper application Pin
Dennis C. Dietrich27-Nov-04 5:47
Dennis C. Dietrich27-Nov-04 5:47 
Generalnetwork Pin
fatidarya26-Nov-04 19:19
fatidarya26-Nov-04 19:19 
GeneralRe: network Pin
Dave Kreskowiak27-Nov-04 11:22
mveDave Kreskowiak27-Nov-04 11:22 
GeneralRe: network Pin
fatidarya28-Nov-04 9:55
fatidarya28-Nov-04 9:55 
GeneralRe: network Pin
Dave Kreskowiak28-Nov-04 17:23
mveDave Kreskowiak28-Nov-04 17:23 
GeneralImage Control Problem Pin
Anonymous26-Nov-04 16:27
Anonymous26-Nov-04 16:27 
GeneralRe: Image Control Problem Pin
Dave Kreskowiak29-Nov-04 2:56
mveDave Kreskowiak29-Nov-04 2:56 
Generalmultiple Forms Pin
quhaip8826-Nov-04 14:02
quhaip8826-Nov-04 14:02 
GeneralRe: multiple Forms Pin
Dennis C. Dietrich26-Nov-04 14:55
Dennis C. Dietrich26-Nov-04 14:55 
GeneralRe: multiple Forms Pin
quhaip8826-Nov-04 17:02
quhaip8826-Nov-04 17:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.