Click here to Skip to main content
15,884,237 members
Home / Discussions / C#
   

C#

 
AnswerRe: new learner Pin
Not Active13-Apr-12 2:28
mentorNot Active13-Apr-12 2:28 
AnswerRe: new learner Pin
V.13-Apr-12 2:32
professionalV.13-Apr-12 2:32 
AnswerRe: new learner Pin
BobJanova13-Apr-12 2:39
BobJanova13-Apr-12 2:39 
QuestionHow can we delegate an array Pin
Fred 3413-Apr-12 2:06
Fred 3413-Apr-12 2:06 
AnswerRe: How can we delegate an array Pin
V.13-Apr-12 2:31
professionalV.13-Apr-12 2:31 
GeneralRe: How can we delegate an array Pin
Fred 3413-Apr-12 3:44
Fred 3413-Apr-12 3:44 
GeneralRe: How can we delegate an array Pin
V.13-Apr-12 3:46
professionalV.13-Apr-12 3:46 
QuestionCorrectly Disposing of MDI Child Forms. Pin
cjb11013-Apr-12 0:29
cjb11013-Apr-12 0:29 
I've got an issue with my MDI child forms, where the form objects 'contain' data from previous instances.

I'm assuming its relating to the fact that when I open the form from the MDI parent I use the following:
C#
frmDTC frm = new frmDTC(true);
frm.MdiParent = this;
frm.Show();

I think the errors are occurring because I don't dispose of frm. Usually I would use using, but that will close the form instantly.Smile | :)

So should I do something like:
C#
frm.FormClosed += (s, ev) => frm.Dispose();

Or should this be in the form class itself?

Or have I missed something else...and the user closing the form should mean it gets disposed eventually...and I've got something else stopping it.
AnswerRe: Correctly Disposing of MDI Child Forms. Pin
BobJanova13-Apr-12 2:37
BobJanova13-Apr-12 2:37 
GeneralRe: Correctly Disposing of MDI Child Forms. Pin
cjb11015-Apr-12 21:51
cjb11015-Apr-12 21:51 
QuestionPaging in SQL Pin
Billa212-Apr-12 20:41
Billa212-Apr-12 20:41 
AnswerCross posted from Database forum Pin
Pete O'Hanlon12-Apr-12 22:18
mvePete O'Hanlon12-Apr-12 22:18 
QuestionProjectProblem Pin
Madhavsingh12-Apr-12 19:26
Madhavsingh12-Apr-12 19:26 
AnswerRe: ProjectProblem Pin
egenis12-Apr-12 20:01
egenis12-Apr-12 20:01 
QuestionAlwaysOnTop behavior - Windows Forms vs. Win32? Pin
Ravi Bhavnani12-Apr-12 18:59
professionalRavi Bhavnani12-Apr-12 18:59 
AnswerRe: AlwaysOnTop behavior - Windows Forms vs. Win32? Pin
Alan N12-Apr-12 23:21
Alan N12-Apr-12 23:21 
GeneralRe: AlwaysOnTop behavior - Windows Forms vs. Win32? Pin
Ravi Bhavnani13-Apr-12 5:19
professionalRavi Bhavnani13-Apr-12 5:19 
QuestionXml Serilization / Deserilization Array quesiton Pin
Jason McBurney12-Apr-12 14:09
Jason McBurney12-Apr-12 14:09 
GeneralRe: Xml Serilization / Deserilization Array quesiton Pin
BobJanova13-Apr-12 2:34
BobJanova13-Apr-12 2:34 
GeneralRe: Xml Serilization / Deserilization Array quesiton Pin
Jason McBurney13-Apr-12 5:36
Jason McBurney13-Apr-12 5:36 
QuestionDrawing to Picturebox problem. Help needed badly Pin
aquahoya12-Apr-12 13:53
aquahoya12-Apr-12 13:53 
SuggestionRe: Drawing to Picturebox problem. Help needed badly Pin
Richard MacCutchan12-Apr-12 21:25
mveRichard MacCutchan12-Apr-12 21:25 
QuestionLearning C# through exercises Pin
jeramyRR12-Apr-12 12:44
jeramyRR12-Apr-12 12:44 
AnswerRe: Learning C# through exercises Pin
Kevin Marois12-Apr-12 13:45
professionalKevin Marois12-Apr-12 13:45 
AnswerRe: Learning C# through exercises Pin
Roger Wright12-Apr-12 19:42
professionalRoger Wright12-Apr-12 19:42 

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.