Click here to Skip to main content
15,914,071 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 18:35
Alan Burkhart3-May-11 18:35 
Luc Pattyn wrote:
Where are Me.Close and Me.Dispose located in your source? in some event handler?

The "Exit" menu item's click event:
VB
Private Sub CloseApp() Handles menuFile_Exit.Click
  Try
    Me.Close()
  Catch ex As Exception
    MsgBox(ex.ToString, MsgBoxStyle.Exclamation, title)
  End Try
End Sub


I added Me.Dispose to the end of the FormClosing event handler. Too much code to list here, but all FormClosing does is save preferences, recently used docs and open tabs. Nothing complicated. I disabled (commented) all the code in the FormClosing sub to see if something there was causing the problem. No change.

Weird, huh?
If Barney Frank eats a fruitcake, is it cannibalism?

AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn3-May-11 18:47
sitebuilderLuc Pattyn3-May-11 18:47 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 19:04
Alan Burkhart3-May-11 19:04 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn4-May-11 1:49
sitebuilderLuc Pattyn4-May-11 1:49 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart4-May-11 6:05
Alan Burkhart4-May-11 6:05 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn4-May-11 6:09
sitebuilderLuc Pattyn4-May-11 6:09 
GeneralRe: (RESOLVED) Cannot close application in or outside of debugger Pin
Alan Burkhart5-May-11 7:25
Alan Burkhart5-May-11 7:25 
AnswerRe: (RESOLVED) Cannot close application in or outside of debugger Pin
Luc Pattyn5-May-11 7:37
sitebuilderLuc Pattyn5-May-11 7:37 
GeneralRe: (RESOLVED) Cannot close application in or outside of debugger Pin
AspDotNetDev5-May-11 7:54
protectorAspDotNetDev5-May-11 7:54 
GeneralRe: (RESOLVED) Cannot close application in or outside of debugger Pin
Andreas Mertens7-May-11 4:00
professionalAndreas Mertens7-May-11 4:00 
GeneralRe: Cannot close application in or outside of debugger Pin
Oakman4-May-11 6:35
Oakman4-May-11 6:35 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart4-May-11 14:14
Alan Burkhart4-May-11 14:14 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn4-May-11 15:14
sitebuilderLuc Pattyn4-May-11 15:14 
GeneralRe: Cannot close application in or outside of debugger Pin
trantrum6-May-11 5:57
professionaltrantrum6-May-11 5:57 
GeneralRe: Cannot close application in or outside of debugger Pin
Gary Huck6-May-11 13:32
Gary Huck6-May-11 13:32 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart6-May-11 13:44
Alan Burkhart6-May-11 13:44 
GeneralRe: Cannot close application in or outside of debugger Pin
Chris Trelawny-Ross6-May-11 6:34
Chris Trelawny-Ross6-May-11 6:34 
GeneralRe: Cannot close application in or outside of debugger Pin
Luc Pattyn6-May-11 6:45
sitebuilderLuc Pattyn6-May-11 6:45 
AnswerRe: Cannot close application in or outside of debugger Pin
patbob6-May-11 6:24
patbob6-May-11 6:24 
AnswerRe: Cannot close application in or outside of debugger Pin
Alan Balkany9-May-11 5:51
Alan Balkany9-May-11 5:51 
QuestionI need Help in Hideing my Program form the Process list ... Pin
Lan.Hekary2-May-11 6:19
Lan.Hekary2-May-11 6:19 
AnswerRe: I need Help in Hideing my Program form the Process list ... Pin
Dave Kreskowiak2-May-11 7:17
mveDave Kreskowiak2-May-11 7:17 
QuestionRe: I need Help in Hideing my Program form the Process list ... PinPopular
DaveAuld2-May-11 8:45
professionalDaveAuld2-May-11 8:45 
AnswerRe: I need Help in Hideing my Program form the Process list ... Pin
Lan.Hekary3-May-11 3:42
Lan.Hekary3-May-11 3:42 
GeneralRe: I need Help in Hideing my Program form the Process list ... Pin
DaveAuld3-May-11 3:45
professionalDaveAuld3-May-11 3:45 

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.