Click here to Skip to main content
15,914,447 members
Home / Discussions / C#
   

C#

 
QuestionChange Parent form from Dialog Box Pin
bootn6-Sep-05 17:11
bootn6-Sep-05 17:11 
AnswerRe: Change Parent form from Dialog Box Pin
Christian Graus6-Sep-05 17:29
protectorChristian Graus6-Sep-05 17:29 
QuestionMemory Management Pin
VickyC#6-Sep-05 15:08
VickyC#6-Sep-05 15:08 
AnswerRe: Memory Management Pin
Matt Gerrans6-Sep-05 15:30
Matt Gerrans6-Sep-05 15:30 
GeneralRe: Memory Management Pin
VickyC#6-Sep-05 16:02
VickyC#6-Sep-05 16:02 
GeneralRe: Memory Management Pin
Dave Kreskowiak6-Sep-05 16:18
mveDave Kreskowiak6-Sep-05 16:18 
GeneralRe: Memory Management Pin
VickyC#6-Sep-05 16:33
VickyC#6-Sep-05 16:33 
GeneralRe: Memory Management Pin
Matt Gerrans6-Sep-05 20:00
Matt Gerrans6-Sep-05 20:00 
GeneralRe: Memory Management Pin
Luis Alonso Ramos6-Sep-05 16:55
Luis Alonso Ramos6-Sep-05 16:55 
AnswerRe: Memory Management Pin
Christian Graus6-Sep-05 16:56
protectorChristian Graus6-Sep-05 16:56 
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 

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.