2 Replies - 1610 Views - Last Post: 10 November 2014 - 05:45 PM Rate Topic: -----

#1 ronskyp   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 11-April 14

System.ArgumentException:Parameter is not valid. VB.NET 2010

Posted 09 November 2014 - 06:33 PM

Hi to all my co-programmers! I am only an amateur programmer.
I build the program using vb.net language with 2010 version.
My program works fine when I run it in OS Windows 7 OS, but when I run it in Windows XP,
there is error "Parameter is not valid." appeared. Please help me get out of this error.
I will highly appreciate your all answers.

Here is the stack trace for the ArgumentException that gets thrown:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Image.get_Flags()
at System.Windows.Forms.ControlPaint.IsImageTransparent(Image backgroundImage)
at System.Windows.Forms.Control.set_BackgroundImageLayout(ImageLayout value)

at VerificationSystem.verificationletter.InitializeComponent()
at VerificationSystem.verificationletter..ctor()
at FOIS.FOIS.btnhrvs_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.onclick(EventArgs e)
at System.Windows.Forms.Button.onclick(EventArgs e)
at System.Windows.Forms.Button.PerformClick()
at FOIS.FOIS.PictureBox2_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.onclick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Is This A Good Question/Topic? 0
  • +

Replies To: System.ArgumentException:Parameter is not valid. VB.NET 2010

#2 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 14175
  • View blog
  • Posts: 56,782
  • Joined: 12-June 08

Re: System.ArgumentException:Parameter is not valid. VB.NET 2010

Posted 10 November 2014 - 11:36 AM

What is the code where the error is happening?
Was This Post Helpful? 0
  • +
  • -

#3 ronskyp   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 11-April 14

Re: System.ArgumentException:Parameter is not valid. VB.NET 2010

Posted 10 November 2014 - 05:45 PM

thanks for your concern "modi123_1". I said before that there were no errors at all. The error "Parameter is not valid" is only appeared during runtime. The forms works fine in windows 7 OS, but when I open it in windows xp OS, the said error prompt.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1