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

C#

 
GeneralRe: change of status Pin
Member 1363217112-Feb-18 19:19
Member 1363217112-Feb-18 19:19 
GeneralRe: change of status Pin
Richard Deeming12-Feb-18 22:31
mveRichard Deeming12-Feb-18 22:31 
QuestionHow to manage dinamically generated user controls? Pin
alin111-Feb-18 13:12
alin111-Feb-18 13:12 
AnswerRe: How to manage dinamically generated user controls? Pin
Dave Kreskowiak11-Feb-18 17:29
mveDave Kreskowiak11-Feb-18 17:29 
AnswerRe: How to manage dinamically generated user controls? Pin
OriginalGriff11-Feb-18 20:15
mveOriginalGriff11-Feb-18 20:15 
GeneralRe: How to manage dinamically generated user controls? Pin
BillWoodruff11-Feb-18 22:52
professionalBillWoodruff11-Feb-18 22:52 
GeneralRe: How to manage dinamically generated user controls? Pin
OriginalGriff11-Feb-18 23:06
mveOriginalGriff11-Feb-18 23:06 
GeneralRe: How to manage dinamically generated user controls? Pin
BillWoodruff12-Feb-18 0:24
professionalBillWoodruff12-Feb-18 0:24 
Hi, Griff,

Strange, I just checked in VS 2017, FrameWork 4.7.1, and the vanilla no-param version did remove the Control.
C#
TextBox tbx = new TextBox { Text = "wtf" };

this.Controls.Add(tbx);

var c1  = this.Controls.Count;

tbx.Dispose();

var c2 = this.Controls.Count; // yep, one less

bool isnull = tbx == null;  // => false

«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12

GeneralRe: How to manage dinamically generated user controls? Pin
OriginalGriff12-Feb-18 0:37
mveOriginalGriff12-Feb-18 0:37 
GeneralRe: How to manage dinamically generated user controls? Pin
BillWoodruff12-Feb-18 2:00
professionalBillWoodruff12-Feb-18 2:00 
GeneralRe: How to manage dinamically generated user controls? Pin
OriginalGriff12-Feb-18 2:07
mveOriginalGriff12-Feb-18 2:07 
GeneralRe: How to manage dinamically generated user controls? Pin
BillWoodruff12-Feb-18 5:44
professionalBillWoodruff12-Feb-18 5:44 
AnswerRe: How to manage dinamically generated user controls? Pin
BillWoodruff11-Feb-18 21:40
professionalBillWoodruff11-Feb-18 21:40 
GeneralRe: How to manage dinamically generated user controls? Pin
alin112-Feb-18 2:53
alin112-Feb-18 2:53 
GeneralRe: How to manage dinamically generated user controls? Pin
BillWoodruff12-Feb-18 4:39
professionalBillWoodruff12-Feb-18 4:39 
GeneralRe: How to manage dinamically generated user controls? Pin
alin112-Feb-18 7:15
alin112-Feb-18 7:15 
GeneralRe: How to manage dinamically generated user controls? Pin
BillWoodruff12-Feb-18 7:52
professionalBillWoodruff12-Feb-18 7:52 
GeneralRe: How to manage dinamically generated user controls? Pin
alin112-Feb-18 8:01
alin112-Feb-18 8:01 
GeneralRe: How to manage dinamically generated user controls? Pin
BillWoodruff12-Feb-18 9:13
professionalBillWoodruff12-Feb-18 9:13 
GeneralRe: How to manage dinamically generated user controls? Pin
alin112-Feb-18 9:27
alin112-Feb-18 9:27 
GeneralRe: How to manage dinamically generated user controls? Pin
BillWoodruff12-Feb-18 17:54
professionalBillWoodruff12-Feb-18 17:54 
Questionsevenzipsharp password Pin
Member 1367023411-Feb-18 10:15
Member 1367023411-Feb-18 10:15 
AnswerRe: sevenzipsharp password Pin
Dave Kreskowiak11-Feb-18 11:01
mveDave Kreskowiak11-Feb-18 11:01 
GeneralRe: sevenzipsharp password Pin
BillWoodruff11-Feb-18 23:10
professionalBillWoodruff11-Feb-18 23:10 
GeneralRe: sevenzipsharp password Pin
Dave Kreskowiak12-Feb-18 2:30
mveDave Kreskowiak12-Feb-18 2:30 

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.