By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,550 Members | 908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,550 IT Pros & Developers. It's quick & easy.

too many arguments to public readonly default property

P: 1
I am getting an error stating there are too many arguments to public readonly default property

My program is this :
Expand|Select|Wrap|Line Numbers
  1.  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         Dim Right, Left As String
  3.         Label3.Text = Left(TextBox1.Text, InStr(TextBox1.Text, "@", CompareMethod.Text - 1))
  4.         Label5.Text = Right(TextBox1.Text, Len(TextBox1.Text) - InStr(TextBox1.Text, "@", CompareMethod.Text)))
  5.     End Sub
Oct 29 '13 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
You have declared two string variables as Right and Left however you are treating them like you would a method/function/sub.

There is a String.Left static/shared method and a String.Right static/shared method that you probably meant to use instead.

-Frinny
Oct 29 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.