Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
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

QuestionExtract Image from Excel Files Pin
Member 425417926-Feb-08 2:39
Member 425417926-Feb-08 2:39 
GeneralRe: Extract Image from Excel Files Pin
buchstaben26-Feb-08 4:10
buchstaben26-Feb-08 4:10 
QuestionRe: Extract Image from Excel Files Pin
Member 425417926-Feb-08 5:02
Member 425417926-Feb-08 5:02 
GeneralOutlook plugin programmer needed Pin
Spinnerdog26-Feb-08 2:18
Spinnerdog26-Feb-08 2:18 
Generaltreeview afterselect problem Pin
Rick van Woudenberg26-Feb-08 1:42
Rick van Woudenberg26-Feb-08 1:42 
GeneralRe: treeview afterselect problem Pin
Bekjong26-Feb-08 2:11
Bekjong26-Feb-08 2:11 
GeneralRe: treeview afterselect problem Pin
John_Adams26-Feb-08 3:03
John_Adams26-Feb-08 3:03 
GeneralRe: treeview afterselect problem Pin
Bekjong26-Feb-08 3:19
Bekjong26-Feb-08 3:19 
GeneralRe: treeview afterselect problem Pin
Xmen Real 26-Feb-08 4:22
professional Xmen Real 26-Feb-08 4:22 
QuestionXml Serialization - deserialize a List problem Pin
Nathan Gloyn26-Feb-08 1:32
Nathan Gloyn26-Feb-08 1:32 
AnswerRe: Xml Serialization - deserialize a List problem Pin
Raji Vulava6-Jan-10 20:11
Raji Vulava6-Jan-10 20:11 
QuestionCompile Visual J# code through C# code [modified] Pin
i_want_to_learn_c#26-Feb-08 0:52
i_want_to_learn_c#26-Feb-08 0:52 
GeneralRe: Compile Visual J# code through C# code Pin
leppie6-Mar-08 3:32
leppie6-Mar-08 3:32 
GeneralRe: Compile Visual J# code through C# code Pin
leppie6-Mar-08 3:32
leppie6-Mar-08 3:32 
Generalloader lock error [modified] Pin
rao raja26-Feb-08 0:45
rao raja26-Feb-08 0:45 
GeneralRe: loader lock error Pin
leppie6-Mar-08 2:33
leppie6-Mar-08 2:33 
Generalproblem with windows service Pin
Prabhat00326-Feb-08 0:45
Prabhat00326-Feb-08 0:45 

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.