Click here to Skip to main content
15,921,793 members
Home / Discussions / C#
   

C#

 
GeneralDataGridView, Memory Usage Pin
Jitse26-Feb-08 5:14
Jitse26-Feb-08 5:14 
GeneralRe: DataGridView, Memory Usage Pin
Colin Angus Mackay26-Feb-08 5:47
Colin Angus Mackay26-Feb-08 5:47 
GeneralRe: DataGridView, Memory Usage Pin
Jitse26-Feb-08 6:04
Jitse26-Feb-08 6:04 
GeneralRe: DataGridView, Memory Usage Pin
Judah Gabriel Himango26-Feb-08 6:27
sponsorJudah Gabriel Himango26-Feb-08 6:27 
GeneralRe: DataGridView, Memory Usage [modified] Pin
Jitse26-Feb-08 9:04
Jitse26-Feb-08 9:04 
GeneralRe: DataGridView, Memory Usage Pin
Judah Gabriel Himango26-Feb-08 13:02
sponsorJudah Gabriel Himango26-Feb-08 13:02 
GeneralRe: DataGridView, Memory Usage Pin
Jitse27-Feb-08 4:24
Jitse27-Feb-08 4:24 
GeneralSending mails Pin
alok_2k326-Feb-08 4:13
alok_2k326-Feb-08 4:13 
GeneralRe: Sending mails Pin
Judah Gabriel Himango26-Feb-08 4:39
sponsorJudah Gabriel Himango26-Feb-08 4:39 
GeneralRe: Sending mails Pin
alok_2k326-Feb-08 6:05
alok_2k326-Feb-08 6:05 
GeneralRe: Sending mails Pin
Judah Gabriel Himango26-Feb-08 6:26
sponsorJudah Gabriel Himango26-Feb-08 6:26 
GeneralRe: Sending mails Pin
alok_2k326-Feb-08 18:43
alok_2k326-Feb-08 18:43 
GeneralRe: Sending mails Pin
Judah Gabriel Himango27-Feb-08 4:08
sponsorJudah Gabriel Himango27-Feb-08 4:08 
GeneralLinq expressions instead of reflection Pin
Roger Alsing26-Feb-08 4:11
Roger Alsing26-Feb-08 4:11 
QuestionMemory leak? Pin
Harvey Saayman26-Feb-08 3:55
Harvey Saayman26-Feb-08 3:55 
AnswerRe: Memory leak? Pin
J4amieC26-Feb-08 4:31
J4amieC26-Feb-08 4:31 
AnswerRe: Memory leak? Pin
Judah Gabriel Himango26-Feb-08 4:31
sponsorJudah Gabriel Himango26-Feb-08 4:31 
Generalmarshalling a complex structure Pin
cruppstahl26-Feb-08 3:41
cruppstahl26-Feb-08 3:41 
GeneralRe: marshalling a complex structure Pin
J a a n s26-Feb-08 5:33
professionalJ a a n s26-Feb-08 5:33 
GeneralRe: marshalling a complex structure Pin
cruppstahl26-Feb-08 5:50
cruppstahl26-Feb-08 5:50 
GeneralRunning Single Instance For C# Pin
tr_thorn26-Feb-08 3:09
tr_thorn26-Feb-08 3:09 
GeneralRe: Running Single Instance For C# Pin
Bekjong26-Feb-08 3:27
Bekjong26-Feb-08 3:27 
GeneralRe: Running Single Instance For C# Pin
DaveyM6926-Feb-08 4:36
professionalDaveyM6926-Feb-08 4:36 
QuestionHow to remove a runtime created object? Pin
Cuelight26-Feb-08 2:42
Cuelight26-Feb-08 2:42 
AnswerRe: How to remove a runtime created object? Pin
Martin#26-Feb-08 3:38
Martin#26-Feb-08 3:38 
Hello,

Have you debugged it?

The problem is, that you handle the MouseDown of the Button, and then try to cast the sender (which is the Button) to a PictureBox.
I would say, that "PictureBox x" (in your "cxt_btn_transfoVerwijder_MouseDown") is "null".

Apart from that, you should also Dispose the Instance of the PictureBox and remove all other references.

P.S.: Naming an PictureBox "x" doesn't make it easy for us to help you!

All the best,

Martin

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.