Click here to Skip to main content
15,913,214 members
Home / Discussions / C#
   

C#

 
QuestionAny one having code to compare two xml files....? Pin
koolprasad200314-Jan-10 18:48
professionalkoolprasad200314-Jan-10 18:48 
AnswerRe: Any one having code to compare two xml files....? Pin
VCsamir14-Jan-10 18:56
VCsamir14-Jan-10 18:56 
GeneralRe: Any one having code to compare two xml files....? Pin
koolprasad200314-Jan-10 20:39
professionalkoolprasad200314-Jan-10 20:39 
GeneralRe: Any one having code to compare two xml files....? Pin
VCsamir14-Jan-10 21:17
VCsamir14-Jan-10 21:17 
GeneralRe: Any one having code to compare two xml files....? Pin
J4amieC14-Jan-10 21:31
J4amieC14-Jan-10 21:31 
GeneralRe: Any one having code to compare two xml files....? Pin
Ashfield14-Jan-10 21:36
Ashfield14-Jan-10 21:36 
AnswerRe: Any one having code to compare two xml files....? Pin
April Fans14-Jan-10 22:16
April Fans14-Jan-10 22:16 
QuestionNewbie struggling with ArgumentException Pin
x3mjeff14-Jan-10 16:55
x3mjeff14-Jan-10 16:55 
Hi,

As the subject states I'm a complete newbie in programming.
I've coded a little program that uses picture boxes to display images of dices.
After filling the picture boxes with an image a PictureBox[pictureBoxNumber].Image.Dispose() is executed.
All the loops I'm using work fine, but if I press the "Alt" or "Alt Gr" key on the keyboard after the button_Click event has run an ArgumentException gets thrown.
The stack trace doesn't make me any wiser though. I've copied it to be able to post it so here it is:
bij System.Drawing.Image.get_Width()
bij System.Drawing.Image.get_Size()
bij System.Windows.Forms.PictureBox.ImageRectangleFromSizeMode(PictureBoxSizeMode mode)
bij System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
bij System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
bij System.Windows.Forms.Control.WmPaint(Message& m)
bij System.Windows.Forms.Control.WndProc(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bij System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.Run(Form mainForm)
bij prjDices.Program.Main() in E:\Mijn documenten\Visual Studio 2008\Projects\solTeerlingen\prjTeerlingen\Program.cs:regel 18
bij System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
bij System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bij Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bij System.Threading.ThreadHelper.ThreadStart()

I've been trying to figure out what happens for quite a while now but to no avail.
I'm really completely stuck on this.
If someone could help me understand what causes the exception I'd be very thankful.
I'm not asking for a solution just help to figure out what in heaven's name is going on.

Thanks in advance,

Jeff
AnswerRe: Newbie struggling with ArgumentException Pin
Super Lloyd14-Jan-10 17:01
Super Lloyd14-Jan-10 17:01 
GeneralRe: Newbie struggling with ArgumentException Pin
x3mjeff14-Jan-10 18:15
x3mjeff14-Jan-10 18:15 
AnswerRe: Newbie struggling with ArgumentException Pin
Luc Pattyn14-Jan-10 17:29
sitebuilderLuc Pattyn14-Jan-10 17:29 
AnswerRe: Newbie struggling with ArgumentException Pin
x3mjeff14-Jan-10 18:32
x3mjeff14-Jan-10 18:32 
GeneralRe: Newbie struggling with ArgumentException Pin
Luc Pattyn15-Jan-10 0:43
sitebuilderLuc Pattyn15-Jan-10 0:43 
Questionregex problem [modified] Pin
uglyeyes14-Jan-10 15:35
uglyeyes14-Jan-10 15:35 
AnswerRe: regex problem Pin
uglyeyes14-Jan-10 16:37
uglyeyes14-Jan-10 16:37 
GeneralRe: regex problem Pin
OriginalGriff14-Jan-10 21:34
mveOriginalGriff14-Jan-10 21:34 
AnswerRe: regex problem Pin
Ravi Sant14-Apr-11 1:45
Ravi Sant14-Apr-11 1:45 
QuestionConverting Image file to binary file Pin
Member 451421814-Jan-10 15:08
Member 451421814-Jan-10 15:08 
AnswerRe: Converting Image file to binary file Pin
loyal ginger14-Jan-10 15:33
loyal ginger14-Jan-10 15:33 
GeneralRe: Converting Image file to binary file Pin
Luc Pattyn14-Jan-10 16:34
sitebuilderLuc Pattyn14-Jan-10 16:34 
AnswerRe: Converting Image file to binary file Pin
Giorgi Dalakishvili14-Jan-10 19:22
mentorGiorgi Dalakishvili14-Jan-10 19:22 
QuestionRequest: Help: Amazon Webservice with c#.net seemed to change things in recent update Pin
tonyonlinux14-Jan-10 13:15
tonyonlinux14-Jan-10 13:15 
AnswerRe: Request: Help: Amazon Webservice with c#.net seemed to change things in recent update Pin
Abhinav S14-Jan-10 16:01
Abhinav S14-Jan-10 16:01 
GeneralRe: Request: Help: Amazon Webservice with c#.net seemed to change things in recent update Pin
tonyonlinux14-Jan-10 18:04
tonyonlinux14-Jan-10 18:04 
Questionstring conversion to double Pin
Aljaz11114-Jan-10 12:01
Aljaz11114-Jan-10 12:01 

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.