Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
GeneralRe: Memory Management Pin
VickyC#6-Sep-05 17:04
VickyC#6-Sep-05 17:04 
GeneralRe: Memory Management Pin
Christian Graus6-Sep-05 17:06
protectorChristian Graus6-Sep-05 17:06 
GeneralRe: Memory Management Pin
VickyC#6-Sep-05 17:14
VickyC#6-Sep-05 17:14 
GeneralRe: Memory Management Pin
Christian Graus6-Sep-05 17:15
protectorChristian Graus6-Sep-05 17:15 
GeneralRe: Memory Management Pin
VickyC#6-Sep-05 17:32
VickyC#6-Sep-05 17:32 
GeneralRe: Memory Management Pin
Christian Graus6-Sep-05 17:35
protectorChristian Graus6-Sep-05 17:35 
GeneralRe: Memory Management Pin
VickyC#6-Sep-05 17:39
VickyC#6-Sep-05 17:39 
GeneralRe: Memory Management Pin
Dave Kreskowiak7-Sep-05 0:56
mveDave Kreskowiak7-Sep-05 0:56 
Christian Graus wrote:
You don't need to dispose of any forms.

Not entirely true. If you call .ShowDialog() on any form, you have to .Dispose() it when you're done with it.

From the MSDN Gospel:
When a form is displayed as a modal dialog box, clicking the close form button (the button with an "X" at the top right of the form) causes the form to be hidden and the DialogResult property to be set to DialogResult.Cancel. Unlike modeless forms, the Close method is not called by the .NET Framework when the user clicks the close form button of a dialog box or sets the value of the DialogResult property. Instead the form is hidden and can be shown again without creating a new instance of the dialog box. Because a form displayed as a dialog box is not closed, you must call the Dispose method of the form when the form is no longer needed by your application.


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

GeneralRe: Memory Management Pin
Christian Graus7-Sep-05 12:32
protectorChristian Graus7-Sep-05 12:32 
GeneralRe: Memory Management Pin
Dave Kreskowiak7-Sep-05 16:50
mveDave Kreskowiak7-Sep-05 16:50 
GeneralRe: Memory Management Pin
VickyC#7-Sep-05 20:18
VickyC#7-Sep-05 20:18 
QuestionTreeView Problem Pin
snouto6-Sep-05 14:47
snouto6-Sep-05 14:47 
QuestionDock form to taskbar? Pin
ehollar6-Sep-05 14:43
ehollar6-Sep-05 14:43 
AnswerRe: Dock form to taskbar? Pin
Luis Alonso Ramos6-Sep-05 17:00
Luis Alonso Ramos6-Sep-05 17:00 
GeneralRe: Dock form to taskbar? Pin
ehollar7-Sep-05 5:14
ehollar7-Sep-05 5:14 
GeneralRe: Dock form to taskbar? Pin
Luis Alonso Ramos7-Sep-05 5:26
Luis Alonso Ramos7-Sep-05 5:26 
QuestionErase/Replace line on Button Event?? Pin
Anonymous6-Sep-05 13:57
Anonymous6-Sep-05 13:57 
AnswerRe: Erase/Replace line on Button Event?? Pin
Dave Kreskowiak6-Sep-05 16:14
mveDave Kreskowiak6-Sep-05 16:14 
Questionbreak; instruction Pin
Yoyosch6-Sep-05 13:54
Yoyosch6-Sep-05 13:54 
AnswerRe: break; instruction Pin
Reanalyse6-Sep-05 14:09
Reanalyse6-Sep-05 14:09 
AnswerRe: break; instruction Pin
Andres Manggini6-Sep-05 15:30
Andres Manggini6-Sep-05 15:30 
GeneralRe: break; instruction Pin
Yoyosch6-Sep-05 21:15
Yoyosch6-Sep-05 21:15 
GeneralRe: break; instruction Pin
leppie6-Sep-05 23:11
leppie6-Sep-05 23:11 
GeneralRe: break; instruction Pin
Dan Neely7-Sep-05 2:20
Dan Neely7-Sep-05 2:20 
QuestionPrint Document Pin
Anonymous6-Sep-05 13:47
Anonymous6-Sep-05 13:47 

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.