With the following code, the debugger keeps telling me "Too many arguments to 'Public Sub New()'. " What needs to be done w/ it?

' create new object and store into Client array
         clients(count) = New Client(firstName(count), _
            lastName(count), account(count), _
            balance(count))

Also, it's letting me know that an "Overload resolution failed because no accessible 'Show' can be called with these arguments:" -then gives me a huge list. Here's the code it's yelling at:

Public Property First() As String
      Get
         Return firstValue
      End Get
      Set(ByVal value As String)
         If (value = "") Then
            MessageBox.Show("Please enter a first name.", MessageBoxButtons.OK, _
               MessageBoxIcon.Information)
         End If
      End Set
   End Property

What do I need to do in order to get a message box to pop up without coding it like this?

You have to supply a caption to the Messagebox

MessageBox.Show("Please enter a first name.", "Your Caption", MessageBoxButtons.OK, MessageBoxIcon.Information)

Show your code for Client class.

Alright, don't know why I hadn't caught that. It's all working just fine now. Thanks so much!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.