2 Replies - 719 Views - Last Post: 08 October 2012 - 10:05 PM Rate Topic: -----

#1 wanabavbcoder  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 48
  • Joined: 08-October 12

No accessible overloaded 'MessageBox.Show' is most specific fo

Posted 08 October 2012 - 03:38 PM

An unhandled exception of type 'System.Reflection.AmbiguousMatchException' occurred in microsoft.visualbasic.dll

Additional information: No accessible overloaded 'MessageBox.Show' is most specific for these arguments:
Public Function Show ( ByVal text As String, ByVal caption As String ) As System.Windows.Forms.DialogResult
Public Function Show ( ByVal owner As System.Windows.Forms.IWin32Window, ByVal text As String ) As System.Windows.Forms.DialogResult

this breaks on
MessageBox.Show(sqlComm.ExecuteScalar, "This works im happy")


what does the error mean and how can it be solved?

Is This A Good Question/Topic? 0
  • +

Replies To: No accessible overloaded 'MessageBox.Show' is most specific fo

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: No accessible overloaded 'MessageBox.Show' is most specific fo

Posted 08 October 2012 - 04:29 PM

Perhaps sqlComm.ExecuteScalar isn't a string type.
Was This Post Helpful? 0
  • +
  • -

#3 wanabavbcoder  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 48
  • Joined: 08-October 12

Re: No accessible overloaded 'MessageBox.Show' is most specific fo

Posted 08 October 2012 - 10:05 PM

View PostCharlieMay, on 08 October 2012 - 04:29 PM, said:

Perhaps sqlComm.ExecuteScalar isn't a string type.

thanks alot for the help. I managed to fix the error. Im Happy
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1