Click here to Skip to main content
15,917,795 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: ComboBox issues Pin
tuga-x17-Oct-07 23:02
tuga-x17-Oct-07 23:02 
GeneralRe: ComboBox issues Pin
Luc Pattyn18-Oct-07 2:52
sitebuilderLuc Pattyn18-Oct-07 2:52 
GeneralRe: ComboBox issues Pin
tuga-x18-Oct-07 2:57
tuga-x18-Oct-07 2:57 
GeneralRe: ComboBox issues Pin
Patrick Etc.18-Oct-07 9:16
Patrick Etc.18-Oct-07 9:16 
GeneralRe: ComboBox issues Pin
Luc Pattyn18-Oct-07 9:42
sitebuilderLuc Pattyn18-Oct-07 9:42 
GeneralRe: ComboBox issues Pin
Patrick Etc.18-Oct-07 9:56
Patrick Etc.18-Oct-07 9:56 
GeneralRe: ComboBox issues Pin
Luc Pattyn18-Oct-07 10:41
sitebuilderLuc Pattyn18-Oct-07 10:41 
GeneralRe: ComboBox issues Pin
tuga-x18-Oct-07 22:19
tuga-x18-Oct-07 22:19 
Hello Patrick,

Thanks for your reply.

There's no need for you to get irritated because I don't know something. No one is born with all knowledge - we are always learning.

Today I learnt I should not rely on "calling Dispose() on a control" to remove it from its parent control collection, thanks to you.

However, I feel compelled to say that this code was originally done for .NET Compact Framework and at the time the code was using a lot of memory. The solution then was to call Dispose() on all unused objects in order to free resources. And let me tell you it worked. Performance was even enhanced because of it. This code runs fine in .NET CF, obviously there are differences between the two, but we're not going into that.

Patrick Sears wrote:
If you want to remove the control from the parent collection, do that. Don't invent some convoluted system of destruction just to remove a control from the parent collection.


So again, don't assume you know why I did that code - obviously I know how to remove a control from its parent control collection. The reason for it has nothing to do with removing it from the collection.

But I'm not here to bash anyone. I thank you for sharing your knowledge, but I don't appreciate how you wrote it.

Thanks.
QuestionValueType vs Reference Pin
rtalan17-Oct-07 0:16
rtalan17-Oct-07 0:16 
AnswerRe: ValueType vs Reference Pin
Robert Rohde17-Oct-07 0:27
Robert Rohde17-Oct-07 0:27 
GeneralRe: ValueType vs Reference Pin
rtalan17-Oct-07 0:48
rtalan17-Oct-07 0:48 
GeneralRe: ValueType vs Reference Pin
lmoelleb17-Oct-07 1:39
lmoelleb17-Oct-07 1:39 
GeneralRe: ValueType vs Reference Pin
rtalan17-Oct-07 1:53
rtalan17-Oct-07 1:53 
GeneralRe: ValueType vs Reference Pin
lmoelleb17-Oct-07 2:12
lmoelleb17-Oct-07 2:12 
GeneralRe: ValueType vs Reference Pin
rtalan17-Oct-07 2:42
rtalan17-Oct-07 2:42 
GeneralRe: ValueType vs Reference Pin
Luc Pattyn17-Oct-07 2:57
sitebuilderLuc Pattyn17-Oct-07 2:57 
GeneralRe: ValueType vs Reference Pin
rtalan17-Oct-07 3:31
rtalan17-Oct-07 3:31 
GeneralRe: ValueType vs Reference Pin
Luc Pattyn17-Oct-07 3:44
sitebuilderLuc Pattyn17-Oct-07 3:44 
GeneralRe: ValueType vs Reference Pin
lmoelleb17-Oct-07 4:46
lmoelleb17-Oct-07 4:46 
GeneralRe: ValueType vs Reference Pin
George L. Jackson17-Oct-07 12:24
George L. Jackson17-Oct-07 12:24 
GeneralRe: ValueType vs Reference Pin
DavidNohejl17-Oct-07 23:21
DavidNohejl17-Oct-07 23:21 
Questionhow to use Indesign files in asp.net Pin
gopal_Pandey16-Oct-07 18:56
gopal_Pandey16-Oct-07 18:56 
AnswerRe: how to use Indesign files in asp.net Pin
Pete O'Hanlon16-Oct-07 23:48
mvePete O'Hanlon16-Oct-07 23:48 
AnswerRe: how to use Indesign files in asp.net Pin
Pete O'Hanlon18-Oct-07 22:06
mvePete O'Hanlon18-Oct-07 22:06 
GeneralRe: how to use Indesign files in asp.net Pin
gopal_Pandey24-Oct-07 0:33
gopal_Pandey24-Oct-07 0:33 

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.